PDA

View Full Version : TAB Alpha Release 29



catventure
13-05-2008, 12:52
Tab Bundle Updated

http://tab.thinbasic.com/tabdemo.zip

13 May 2008 (Release 29)
===========
*NEW. Select game default font now active on "Game Settings Editor". (Psch)

*FIX. Statusbar repetition glitch in Editor version of Player solved.

*FIX. Menu Option "Exit TAB Player" on Editor version of Player does not now crash TAB.

*FIX. "ask" action and "answer="; "answer<>" conditions routines now working properly again.

*CHANGED. Used InputBox$ for requesting game password when protected game loaded into Editor.

*NEW. "showexits" action. Prints exit directions from current location. (only if exits set to ON)

*NEW. "jumpLABEL" ACTION command - where label is a word(s) further ahead in the code.
Can be used in Response, Script1,Script2 and Character Speech coding editors.

EXAMPLE RESPONSE ENTRY

[start]push %n1%/push %objn1%/push %charn1%[acts]jumpPUSH_CODE[end]

'REM if player types verb "push" + valid noun jump over subsequent code to label

jumpLABEL is very handy for jumping over or bypassing blocks of coding entries to access other entries more quickly. Will be mainly used in Response Editor.

*NEW. TAB Online Updater accessible from Editor Main Menu. Checks online to see if new version of TAB available. Also download latest adventures made with TAB.

*NEW. New text format codes added:

%ucase% - capitalise first letter of next word in text
%lcase% - make first letter of word lower case

EXAMPLE: %lcase%My sentence now begins with a lower case M.

The following will operate on valid Character noun1 and/or Character noun 2 words typed by player.
%he.she.n1% - print "he", "she" or "it" depending on Char Noun 1's gender (male, female or "it")
%he.she.n2% - print "he", "she" or "it" depending on Char Noun 2's gender (male, female or "it")
%him.her.n1% - print "him", "her" or "it" depending on Char Noun 1's gender (male, female or "it")
%him.her.n2% - print "him", "her" or "it" depending on Char Noun 2's gender (male, female or "it")

*NEW. TAB can now load a splash window with graphic before Player is shown. The file "splash.bmp" should be in the same directory as Player. Useful for introductory pic, game credits, instructions etc..

http://tab.thinbasic.com/tabdemo.zip

Regards,
catventure.

Petr Schreiber
13-05-2008, 13:43
Thanks!,

new version works well, the idea with startup image is very nice ( I like the image too :) ).
I tried to change fonts, and it worked well. The "live preview" for text and colors is good.
Just one thing - by default the Arial is selected, but in the combobox there is not text. Maybe there could be Arial selected.


LOCAL StringToFind AS ASCIIZ * 255
StringToFind = "Arial"
%CB_SELECTSTRING = &H158
CONTROL SEND hDlg, %myFontCombo %CB_SELECTSTRING, -1, VARPTR(StringToFind)


One thing occured to me regarding the text commands - some key like F3 in DOS would be nice to repeat last command.
Integration of TAB updater is good and easily accessible.


Thanks a lot,
Petr

catventure
13-05-2008, 13:52
Hi Petr,

Thanks for trying out. I tried to work out how to show the selected font at top of the combobox but was unable to fathom it. So I just printed selected font at the side of combobox. I will try your code which looks interesting...



One thing occured to me regarding the text commands - some key like F3 in DOS would be nice to repeat last command.


This is already available in TAB - entering the "g" or typing "again" repeats the last command entered in games. :)

Glad you like "live preview"

Thanks,
catventure.

catventure
13-05-2008, 14:27
LOCAL StringToFind AS ASCIIZ * 255
StringToFind = "Arial"
%CB_SELECTSTRING = &H158
CONTROL SEND hDlg, %myFontCombo %CB_SELECTSTRING, -1, VARPTR(StringToFind)



Worked well Petr. I will use it and upload file again later.

Thanks,
catventure.

ErosOlmi
13-05-2008, 14:46
I will release in next few days the request Petr asked here: http://community.thinbasic.com/index.php?topic=1730.msg12634#msg12634
So, one line will do the job.

Ciao
Eros