U
utunnels
Guest
New:
Plombo's new #import feature available, check it here: http://www.chronocrash.com/forum/index.php?topic=274.0
Android touch button layout can be customized now using touch.txt, which can be placed in 3 different locations:
1) /mnt/sdcard/OpenBOR/Saves/pakname/touch.txt
2) data/touch.txt
3) /mnt/sdcard/OpenBOR/Saves/touch.txt
1) overrides 2), 2) overrides 3), so 3) can be used as a global setting if you don't want the default layout. The commands:
button {name} {x} {y} {radius} {corner}
{name} is same as its counterpart in menu.txt.
{x} {y} {radius}, coordinations and radius. They should be decimal values, and the actual size is sizexwidthx0.6, see below.
{corner} defines one of the 4 corners your coordinations start from.
0 1
3 2
An example:
button attack 0.6 0.25 0.08 2
Assume your screen resolution is 800x480, the button (center of it) is at (0.6x800x0.6, 0.25x800x0.6)=(288, 120), radius is 38. Because corner is 2(see above), actual position is at (800-288, 480-120)=(512, 360). There is no direct way to center a button though.
To hide a button, just move it out of the screen.
Usually you don't need to change the picture, if you really want to, use texture command:
texture {path}
Only 32 bit png is supported. An example can be found here: http://sourceforge.net/p/openbor/engine/3780/tree/engine/android/button_png_800x480.h.png
Fix:
Better screen fade under 32/16bit SDL mode (the old logic fades too fast and shows a bit reddish).
Work around:
Entity header command icon now has a second parameter, 0 means the icon doesn't use remap (default), 1 means it uses remap from the entity. This should fix some old mods which were made when icon remap feature is absent.
Plombo's new #import feature available, check it here: http://www.chronocrash.com/forum/index.php?topic=274.0
Android touch button layout can be customized now using touch.txt, which can be placed in 3 different locations:
1) /mnt/sdcard/OpenBOR/Saves/pakname/touch.txt
2) data/touch.txt
3) /mnt/sdcard/OpenBOR/Saves/touch.txt
1) overrides 2), 2) overrides 3), so 3) can be used as a global setting if you don't want the default layout. The commands:
button {name} {x} {y} {radius} {corner}
{name} is same as its counterpart in menu.txt.
{x} {y} {radius}, coordinations and radius. They should be decimal values, and the actual size is sizexwidthx0.6, see below.
{corner} defines one of the 4 corners your coordinations start from.
0 1
3 2
An example:
button attack 0.6 0.25 0.08 2
Assume your screen resolution is 800x480, the button (center of it) is at (0.6x800x0.6, 0.25x800x0.6)=(288, 120), radius is 38. Because corner is 2(see above), actual position is at (800-288, 480-120)=(512, 360). There is no direct way to center a button though.
To hide a button, just move it out of the screen.
Usually you don't need to change the picture, if you really want to, use texture command:
texture {path}
Only 32 bit png is supported. An example can be found here: http://sourceforge.net/p/openbor/engine/3780/tree/engine/android/button_png_800x480.h.png
Fix:
Better screen fade under 32/16bit SDL mode (the old logic fades too fast and shows a bit reddish).
Work around:
Entity header command icon now has a second parameter, 0 means the icon doesn't use remap (default), 1 means it uses remap from the entity. This should fix some old mods which were made when icon remap feature is absent.