User Tag List

Results 1 to 10 of 15

Thread: tango.zh

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,435
    Level
    24
    vBActivity - Bars
    Lv. Percent
    70.42%
    Finally, another update. Aside from bug fixes and more validation, here's the major new stuff:
    • New functions: Tango_Sync(), @sync(), @else(), @elseif(), @goto(), @close(), @pressa(), @menuwait()
    • New variable: @style
    • Persistent string style flag
    • Complex backdrops can now have text
    • It's possible (optionally) to cancel from menus now
    • New input functions allow you to change what buttons are used
    • String control code \25 works in messages now

    I might've missed a few things there.

    If you're already using it, a couple of things will need updated. The newline character is now 26 (since that's how \25 is stored), @domenu() now takes an argument, and @waituntil(@chosen) is no longer needed afterward. @menuwait() is used when something other than the string creates the menu.

    Edit: And now I've found a couple of problems. :p If you don't want errors in allegro.log, change these bits, both in tango/common.zh.
    At the end of __Tango_SetCurrentString(), replace
    Code:
        __Tango_Data[__TCS_FONT]=
          __Tango_Styles[styleStart+TANGO_STYLE_TEXT_FONT];
    with
    Code:
        if(style!=TANGO_INVALID)
            __Tango_Data[__TCS_FONT]=
              __Tango_Styles[styleStart+TANGO_STYLE_TEXT_FONT];
        else
            __Tango_Data[__TCS_FONT]=TANGO_INVALID;
    And in __Tango_GetStringFlags(), add a bit after the first line:
    Code:
        int dataStart=stringID*__TANGO_SIZEOF_DATA;
        if(__Tango_StringData[dataStart+__TSDIDX_STYLE]==TANGO_INVALID)
            return 0;
    Last edited by Saffith; 10-22-2013 at 09:36 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social