Signs from my mind

Spreadshirt!

Nessun commento

Ok

it was long time since I posted something in my blog.

Many things happened, the world is running to pieces and Christmas is coming again!

So, lost in my happy thoughts (yes, I’m happy!) I discovered a web-site (www.spreadshirt.com) where you can buy personalized t-shirts and other things.

The funny thing is that you can create you own design and SELL it! You can also create your own T-SHIRT STORE (based on SpreadShirt…)… and I did it!

The only limitation is due to ‘copyrighted’ design (so dont’ upload Disney’s or WB images – they will be immediately blocked) but YOUR design is safe!

So for who is interested here my incredible t-shirt online-store!

http://degac.spreadshirt.it

PS: I don’t know if it works… just uploaded some designs and started the store.

The next design is Blitz-related and something about my game… I dont’ know

I have my mind full!!!!!

 

 

 

 

 

 

 

Bloniacs on Indievania

Nessun commento

Some weeks ago I discovered Indievania, a indie game store.

Yestarday I decided to re-publish my game BLONIACS on this site and see what happens.
Of course the price has been cutted down (the game is old and the ‘current policy price’ of new game – due to the mobile game era – seems to be 0,99 to 4,99).

Well, lets’ see!

www.indievania.com

MaxGUI variation

Nessun commento

Just yesterday I posted about some ‘experiments’ I made with MaxGUI.

In particular ’autoalignment’ was once thing I like to find native in MaxGUI. So I decided to re-do my own autoalignment version of MaxGUI and make it public.

You can find here the MaxGUI.mod (please make a copy of your version before install mine, build all modules and re-build documentation).

I’ve added 2 commands (auto-highlighted once you rebuild mods+docs)

SetGadgetAlignment (parent,alignment, size)

DoLayout()

the first one determines what type of alignment you want for the ‘next’ gadgets you will add: it can be MAXGUI_HORIZONTAL, or MAXGUI_VERTICAL

Size determines the distance from borders of the ‘gadgets’.

DoLayout() is needed to ‘make things happens’: without this command you cant’ see any gadgets at all! It does the ‘magic’ of placing the gadgets in the ‘parent’ selected.

By default the ‘reference parent’ is the latest windows created.

Every CreateGadget commands – now – has ‘default’ parameters: so you can ‘leave blank’ positions or sizes or parent; MaxGUI will try to determine automatically gadget’s dimensions.

This is an example of the default gadget paramets

 

SuperStrict
Import maxgui.drivers
 
Global window:tgadget=CreateWindow("Main",100,100,300,350,,WINDOW_CLIENTCOORDS|WINDOW_TITLEBAR|WINDOW_CENTER)
Global button:tgadget[5]
 
button[0]=		CreateButton("Hallo 1",,,,25)
button[1]=		CreateButton("Hallo 2",,30,,25)
button[2]=		CreateButton("Hallo 3",,60,,25)
button[3]=		CreateButton("Hallo 4",,90,,25)
 
Repeat
	WaitEvent()
 
	Select EventID()
		Case EVENT_APPTERMINATE, EVENT_WINDOWCLOSE
			End
	End Select
Forever

This is an example of automatic layout

SuperStrict
Import maxgui.drivers
 
Global window:tgadget=CreateWindow("Main",100,100,300,350,,WINDOW_CLIENTCOORDS|WINDOW_TITLEBAR|WINDOW_CENTER)
Global button:tgadget[5]
 
SetGadgetAlignment(window,MAXGUI_VERTICAL,25)
 
button[0]=		CreateButton("Hallo 1")
button[1]=		CreateButton("Hallo 2")
button[2]=		CreateButton("Hallo 3")
button[3]=		CreateButton("Hallo 4")
 
DoAlignment()
 
Repeat
	WaitEvent()
 
	Select EventID()
		Case EVENT_APPTERMINATE, EVENT_WINDOWCLOSE
			End
	End Select
Forever

Except CreatePanel command and proxygadgets , every other CreateGadget command has been rewritten to play with Autoalignment feature. I’ve tested it on Windows XP and with FLTK (win32).

Of course consider this MaxGUI variation like an experiment: I can’t guarantee it’s bugfree! It’s is just a proof of concept, and – for sure – I will try to change the autoalignment features in the future.

 

Another variation I’ve added is AddGadgetItems(gadget,object,select)

This command allow to add – in a faster way – several items to a gadget that support items (like gadgetbox or listbox)

The parameter object can be a string array, a list or a map (in this case only MapKeys are considered).

The select parameter indicates what item must be ‘selected’ in the gadget list.

 

Cheers