Files
oboe/osx/dialogxml/dlogutil.buttons.h
Celtic Minstrel 78cd213972 In no particular order:
- Added some of the most basic dialogs
- Changed C-style <xxx.h> headers to C++-style <cxxx> headers
- Switched graphics to load from the PNG files in graphics.exd rather than from Blades of Exile Graphics (NOTE: Some graphics still don't work, probably because of incorrect source rects)
- Switched cursors to load from GIF files in graphics.exd rather than from Blades of Exile Graphics
- Moved Niemand's tileImage functions from boe.graphics.cpp to graphtool.cpp, so they can be used by all three programs.
- Added some string lists in .txt files
- Made cursors into an enum
- Rewrote the code for displaying the Edit Terrain dialog to use the new engine (not tested yet)
- Fixed some __attribute__((deprecated)) stuff
- Most graphics are now loaded just after the custom graphics. This means they will be overridden by a file of the same name in the scenario's .exr folder.
- Altered modes a little so that when at the startup screen you are in MODE_STARTUP rather than MODE_OUTDOORS.
- Switched from function pointers to boost::function – the Boost libraries are now required.
- Finished off the new dialog engine and made gess necessary
- Added status icons as another type that can be drawn in dialogs
- C Wrappers for Cocoa cursors based on an Apple example. This is tested, and works perfectly.
- Added a switch in the program for using Windows graphics; however, there is no way as yet to set this flag, and in fact there aren't even any Windows graphics to use.
- Added include guards to graphtool.h
- Made separate mac and win directories within sounds.exa, since the Mac and Windows sounds are mostly subtly different (with two completely different!)

git-svn-id: http://openexile.googlecode.com/svn/trunk@90 4ebdad44-0ea0-11de-aab3-ff745001d230
2009-06-07 18:18:24 +00:00

186 lines
6.7 KiB
C

/*
* dlogutil.buttons.h
* BoE
*
* Created by Celtic Minstrel on 07/06/09.
*
*/
size_t available_btns[] = { // This array is a list of indices into the following array.
0, 63, 64, 65, 1, 4, 5, 8, 128,9,
10, 11, 12, 13, 14, 15, 16, 17, 29, 51,
60, 61, 62, 66, 69, 70, 71, 72, 73, 74,
79, 80, 83, 86, 87, 88, 91, 92, 93, 99,
100,101,102,104,129,130,131,132,133,134,
135,136,137
};
cBasicButtonType basic_buttons[] = {
{BTN_DONE, " ", {false,0,mod_none}}, // Formerly DLG_BTN_REG with "Done " as the string
{BTN_REG, "Ask", {false,0,mod_none}},
{BTN_LEFT, " ", {true,key_left,mod_none}},
{BTN_RIGHT, " ", {true,key_right,mod_none}},
{BTN_REG, "Keep", {false,'k',mod_none}},
{BTN_REG, "Cancel", {true,key_esc,mod_none}},
{BTN_SM, "+", {false,0,mod_none}},
{BTN_SM, "-", {false,0,mod_none}},
{BTN_REG, "Buy", {false,0,mod_none}},
{BTN_REG, "Leave", {false,0,mod_none}},
//10
{BTN_REG, "Get", {false,'g',mod_none}},
{BTN_REG, "1", {false,'1',mod_none}},
{BTN_REG, "2", {false,'2',mod_none}},
{BTN_REG, "3", {false,'3',mod_none}},
{BTN_REG, "4", {false,'4',mod_none}},
{BTN_REG, "5", {false,'5',mod_none}},
{BTN_REG, "6", {false,'6',mod_none}},
{BTN_REG, "Cast", {false,0,mod_none}},
{BTN_TINY, " ", {false,0,mod_none}},
{BTN_TINY, " ", {false,0,mod_none}},
//20
{BTN_TINY, " ", {false,0,mod_none}},
{BTN_TINY, " ", {false,0,mod_none}},
{BTN_TINY, " ", {false,0,mod_none}},
{BTN_REG, "Buy", {false,0,mod_none}},
{BTN_REG, "Sell", {false,0,mod_none}},
{BTN_LG, "Other Spells", {false,' ',mod_none}},
{BTN_REG, "Buy x10", {false,0,mod_none}},
{BTN_UP, " ", {true,key_up,mod_none}},
{BTN_DOWN, " ", {true,key_down,mod_none}},
{BTN_REG, "Save", {false,0,mod_none}},
//30
{BTN_REG, "Race", {false,0,mod_none}},
{BTN_TALL, "Train", {false,0,mod_none}},
{BTN_REG, "Items", {false,0,mod_none}},
{BTN_REG, "Spells", {false,0,mod_none}},
{BTN_LG, "Heal Party", {false,0,mod_none}},
{BTN_SM, "1", {false,'1',mod_none}},
{BTN_SM, "2", {false,'2',mod_none}},
{BTN_SM, "3", {false,'3',mod_none}},
{BTN_SM, "4", {false,'4',mod_none}},
{BTN_SM, "5", {false,'5',mod_none}},
//40
{BTN_SM, "6", {false,'6',mod_none}},
{BTN_SM, "7", {false,'7',mod_none}},
{BTN_SM, "8", {false,'8',mod_none}},
{BTN_SM, "9", {false,'9',mod_none}},
{BTN_SM, "10", {false,'a',mod_none}},
{BTN_SM, "11", {false,'b',mod_none}},
{BTN_SM, "12", {false,'c',mod_none}},
{BTN_SM, "13", {false,'d',mod_none}},
{BTN_SM, "14", {false,'e',mod_none}},
{BTN_SM, "15", {false,'f',mod_none}},
//50
{BTN_SM, "16", {false,'g',mod_none}},
{BTN_REG, "Take", {false,0,mod_none}},
{BTN_REG, "Create", {false,0,mod_none}},
{BTN_REG, "Delete", {false,0,mod_none}},
{BTN_LG, "Race/Special", {false,0,mod_none}},
{BTN_REG, "Skill", {false,0,mod_none}},
{BTN_REG, "Name", {false,0,mod_none}},
{BTN_REG, "Graphic", {false,0,mod_none}},
{BTN_LG, "Bash Door", {false,0,mod_none}},
{BTN_LG, "Pick Lock", {false,0,mod_none}},
//60
{BTN_REG, "Leave", {false,0,mod_none}},
{BTN_REG, "Steal", {false,0,mod_none}},
{BTN_REG, "Attack", {false,0,mod_none}},
{BTN_REG, "OK", {false,0,mod_none}},
{BTN_REG, "Yes", {false,'y',mod_none}},
{BTN_REG, "No", {false,'n',mod_none}},
{BTN_LG, "Step In", {false,0,mod_none}},
{BTN_HELP, " ", {false,'?',mod_none}},
{BTN_REG, "Record", {false,'r',mod_none}},
{BTN_REG, "Climb", {false,0,mod_none}},
//70
{BTN_REG, "Flee", {false,0,mod_none}},
{BTN_REG, "Onward", {false,0,mod_none}},
{BTN_REG, "Answer", {false,0,mod_none}},
{BTN_REG, "Drink", {false,0,mod_none}},
{BTN_LG, "Approach", {false,0,mod_none}},
{BTN_LG, "Mage Spells", {false,0,mod_none}},
{BTN_LG, "Priest Spells", {false,0,mod_none}},
{BTN_LG, "Advantages", {false,0,mod_none}},
{BTN_LG, "New Game", {false,0,mod_none}},
{BTN_REG, "Land", {false,0,mod_none}},
//80
{BTN_REG, "Under", {false,0,mod_none}},
{BTN_REG, "Restore", {false,0,mod_none}},
{BTN_REG, "Restart", {false,0,mod_none}},
{BTN_REG, "Quit", {false,0,mod_none}},
{BTN_LG, "Save First", {false,0,mod_none}},
{BTN_LG, "Just Quit", {false,0,mod_none}},
{BTN_REG, "Rest", {false,0,mod_none}},
{BTN_REG, "Read", {false,0,mod_none}},
{BTN_REG, "Pull", {false,0,mod_none}},
{BTN_LG, "Alchemy", {false,0,mod_none}},
//90
{BTN_SM, "17", {false,'g',mod_none}},
{BTN_REG, "Push", {false,0,mod_none}},
{BTN_REG, "Pray", {false,0,mod_none}},
{BTN_REG, "Wait", {false,0,mod_none}},
{BTN_PUSH, "", {false,0,mod_none}},
{BTN_TRAIT, "", {false,0,mod_none}},
{BTN_TALL, "Delete", {false,0,mod_none}},
{BTN_TALL, "Graphic", {false,0,mod_none}},
{BTN_TALL, "Create", {false,0,mod_none}},
{BTN_REG, "Give", {false,0,mod_none}},
//100
{BTN_REG, "Destroy", {false,0,mod_none}},
{BTN_REG, "Pay", {false,0,mod_none}},
{BTN_REG, "Free", {false,0,mod_none}},
{BTN_LG, "Next Tip", {false,0,mod_none}},
{BTN_REG, "Touch", {false,0,mod_none}},
{BTN_LG, "Select Icon", {false,0,mod_none}},
{BTN_LG, "Create/Edit", {false,0,mod_none}},
{BTN_LG, "Clear Special", {false,0,mod_none}},
{BTN_LG, "Edit Abilities", {false,0,mod_none}},
{BTN_REG, "Choose", {false,0,mod_none}},
//110
{BTN_LG, "Go Back", {false,0,mod_none}},
{BTN_LG, "Create New", {false,0,mod_none}},
{BTN_LG, "General", {false,0,mod_none}},
{BTN_LG, "One Shots", {false,0,mod_none}},
{BTN_LG, "Affect PCs", {false,0,mod_none}},
{BTN_LG, "If-Thens", {false,0,mod_none}},
{BTN_LG, "Town Specs", {false,0,mod_none}},
{BTN_LG, "Out Specs", {false,0,mod_none}},
{BTN_LG, "Advanced", {false,0,mod_none}},
{BTN_LG, "Weapon Abil", {false,0,mod_none}},
//120
{BTN_LG, "General Abil.", {false,0,mod_none}},
{BTN_LG, "NonSpell Use", {false,0,mod_none}},
{BTN_LG, "Spell Usable", {false,0,mod_none}},
{BTN_LG, "Reagents", {false,0,mod_none}},
{BTN_LG, "Missiles", {false,0,mod_none}},
{BTN_LG, "Abilities", {false,0,mod_none}},
{BTN_LG, "Pick Picture", {false,0,mod_none}},
{BTN_LG, "Animated", {false,0,mod_none}},
{BTN_REG, "Enter", {false,0,mod_none}},
{BTN_REG, "Burn", {false,0,mod_none}},
//130
{BTN_REG, "Insert", {false,0,mod_none}},
{BTN_REG, "Remove", {false,0,mod_none}},
{BTN_REG, "Accept", {false,0,mod_none}},
{BTN_REG, "Refuse", {false,0,mod_none}},
{BTN_REG, "Open", {false,0,mod_none}},
{BTN_REG, "Close", {false,0,mod_none}},
{BTN_REG, "Sit", {false,0,mod_none}},
{BTN_REG, "Stand", {false,0,mod_none}},
{BTN_SM, "", {false,0,mod_none}},
{BTN_SM, "", {false,0,mod_none}},
//140
{BTN_SM, "18", {false,0,mod_none}},
{BTN_SM, "19", {false,0,mod_none}},
{BTN_SM, "20", {false,0,mod_none}},
{BTN_SM, "", {false,0,mod_none}}, // invisible button; text was "Invisible!"
{BTN_SM, "", {false,0,mod_none}},
{BTN_SM, "", {false,0,mod_none}},
{BTN_SM, "", {false,0,mod_none}},
{BTN_SM, "", {false,0,mod_none}},
{BTN_SM, "", {false,0,mod_none}},
{BTN_SM, "", {false,0,mod_none}},
//150
{BTN_LG, "Open File", {false,0,mod_none}},
{BTN_SM, " ", {false,0,mod_none}},
};