Difference between revisions of "0x0024"
MogHughson (Talk | contribs) |
MogHughson (Talk | contribs) (→Dialog Types) |
||
Line 15: | Line 15: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | !Num!!Dialog Type!! | + | !Num!!Dialog Type!!Notes & Picture |
|- | |- | ||
− | |00||Message | + | |00||Message||''Display a dialog with a message and yes button'' |
|- | |- | ||
− | |01||yes-no message | + | |01||yes-no message||''Display a dialog with a message, a yes button and a no button. Return true on yes and false on no.'' |
|- | |- | ||
− | |02||yes-no-cancel message | + | |02||yes-no-cancel message||''Display a dialog with a yes, no and cancel button. If yes is chosen, returns true. If no is chosen, returns false and sets temp to 0. If cancel is chosen, returns false, and set temp to 1.'' |
|- | |- | ||
− | |03||text entry | + | |03||text entry||''Display a dialog with an OK button and a space for the user to type in a name. The next call to "make a new character" will use the typed name as the name of the new character.'' |
|- | |- | ||
− | |04||tutorial | + | |04||tutorial||''Display a tutorial dialog, with only an OK button.'' |
|- | |- | ||
− | |05||Phone Book - Services | + | |05||Phone Book - Services||''Display the phone book dialog for services - uses private string table 147 to get service choices in. Returns index selected in array0 at position 0.'' |
|- | |- | ||
− | |06||Phone Book - Invite||[[Image:PhoneBookAnnotated.JPG|thumb|Example Phone Book Dialog]]The main title of the phone book can be conifgured (NL onwards, i.e Node Version 0x01), as can the string in the top pane - using %s to substitue the name of the Sim currently selected in the lower portion of the Dialog. | + | |06||Phone Book - Invite||[[Image:PhoneBookAnnotated.JPG|thumb|Example Phone Book Dialog]]''Display the phone book dialog for calling one sim over. Returns neighbor ID of invitee in array0 at position 0.''<br>The main title of the phone book can be conifgured (NL onwards, i.e Node Version 0x01), as can the string in the top pane - using %s to substitue the name of the Sim currently selected in the lower portion of the Dialog. This dialog expects to be called with the [[Sims 2 Variables#Stack Object|Stack Object's]] [[0x0076|array]] number 0 filled in with [[Sims 2 My person data|Neighbor IDs]] to display in the dialog. It returns the selected [[Sims 2 My person data|Neighbor ID]] in position 0 of this array. |
|- | |- | ||
− | |07||Phone Book - Party | + | |07||Phone Book - Party||''Display the phone book dialog for having a party. Returns neighbors invited in array0.'' |
|- | |- | ||
|08||Text Notification | |08||Text Notification | ||
Line 39: | Line 39: | ||
|0A||Text Notification Modify | |0A||Text Notification Modify | ||
|- | |- | ||
− | |0B||Magazine Rack | + | |0B||Magazine Rack||[[Image:MagazineRackDialog.JPG|thumb|Example Magazine Rack Dialog]]This dialog doesn't have any configurable strings, however, it is already very generic, so that's not really an issue. It expects to be called with the [[Sims 2 Variables#Stack Object|Stack Object's]] [[0x0076|array]] number 0 filled in with the IDs of objects to be displayed. |
|- | |- | ||
|0C||Jewelry Rack | |0C||Jewelry Rack | ||
Line 73: | Line 73: | ||
|1B||Resurrectonomitron | |1B||Resurrectonomitron | ||
|- | |- | ||
− | |1C|| | + | |1C||Text Notification Append |
|- | |- | ||
|1D||Move Grave To Lot | |1D||Move Grave To Lot | ||
|- | |- | ||
− | |1E||Visit | + | |1E||Visit Neighbourhood Or Lot |
|- | |- | ||
|1F||Dating Services | |1F||Dating Services | ||
Line 93: | Line 93: | ||
|25||Choose a Lot to Purchase | |25||Choose a Lot to Purchase | ||
|- | |- | ||
− | |26||Choose a Lot to Transfer Ownership | + | |26||Choose a Lot to Transfer Ownership |
|- | |- | ||
− | |27||Choose | + | |27||Choose Owned Lot - Generic |
|- | |- | ||
|28||Set Price | |28||Set Price | ||
|- | |- | ||
− | |29|| | + | |29||Dress Employee |
|- | |- | ||
− | |2A|| | + | |2A||Food Rack |
|- | |- | ||
− | |2B|| | + | |2B||VideoGame Rack (Unused) |
|- | |- | ||
− | |2C|| | + | |2C||Jewelry Rack (Unused) |
|- | |- | ||
− | |2D|| | + | |2D||Magazine Rack |
|- | |- | ||
− | |2E|| | + | |2E||Clothing Rack |
|- | |- | ||
− | |2F|| | + | |2F||Manage Business |
|- | |- | ||
|30||Set Wage | |30||Set Wage | ||
Line 117: | Line 117: | ||
|31||Suggest an Outfit | |31||Suggest an Outfit | ||
|- | |- | ||
− | |32|| | + | |32||Offer Job |
|- | |- | ||
− | |33|| | + | |33||Restaurant Menu |
|- | |- | ||
− | |34|| | + | |34||Service Phone Book (GUIDs) |
|- | |- | ||
− | |35|| | + | |35||Choose an Image to Paint |
|- | |- | ||
− | |36|| | + | |36||Buy Collar |
|- | |- | ||
− | |37|| | + | |37||Give Up Pet For Adoption |
|- | |- | ||
− | |38|| | + | |38||Adopt a Pet |
|- | |- | ||
− | |39|| | + | |39||Game Tip |
|- | |- | ||
− | |3A|| | + | |3A||Make A Pet |
|- | |- | ||
− | |3B|| | + | |3B||Change Pet Appearance |
|- | |- | ||
− | |3C|| | + | |3C||Change Breed |
|- | |- | ||
− | |3D|| | + | |3D||Register Breed |
|- | |- | ||
− | |3E|| | + | |3E||Purchase Contained Pet |
|- | |- | ||
− | |3F|| | + | |3F||Fridge Storage |
|- | |- | ||
− | |40|| | + | |40||Give Gift |
|- | |- | ||
− | |41|| | + | |41||Juicer Stocking |
+ | |- | ||
+ | |42||Grab Leftovers | ||
+ | |- | ||
+ | |43||unknown | ||
+ | |- | ||
+ | |44||Visit Neighborhood Or Lot | ||
+ | |- | ||
+ | |45||unknown | ||
+ | |- | ||
+ | |46||Transportation Picker | ||
+ | |- | ||
+ | |47||unknown | ||
+ | |- | ||
+ | |48||unknown | ||
+ | |- | ||
+ | |49||unknown | ||
|} | |} | ||
− | |||
− |
Revision as of 12:28, 22 February 2010
Dialog | ||
---|---|---|
OpCode: | 0x0024 | |
Game Version: | The Sims 2 |
Overview
This primitive is used to display informations like "The car pool will arrive in one hour" and / or to display messages to which the player can reply by clicking on buttons like "Yes", "No" and "Cancel".
Using the Instruction Wizard
This wizard allows you to choose the type of dialog you want (see the table below) and then configure various things about that dialog depending on the type you chose. Things that do not apply to your chosen dialog type, are hidden on the wizard, so do not worry if it doesn't look exactly like the picture. For many of the dialog types, the main things to be chosen are the strings used for Title, Message and buttons. These strings are taken from Text List (STR#) resource 0x0000012D (see String Resources for all the different Text List usages). The wizard allows you to pick the string from a pop-up window, so you don't have to remember that line 0x00 in the text list is "01" in the operands field, line 0x01 is "02", and so on.
Dialog Types
Num | Dialog Type | Notes & Picture |
---|---|---|
00 | Message | Display a dialog with a message and yes button |
01 | yes-no message | Display a dialog with a message, a yes button and a no button. Return true on yes and false on no. |
02 | yes-no-cancel message | Display a dialog with a yes, no and cancel button. If yes is chosen, returns true. If no is chosen, returns false and sets temp to 0. If cancel is chosen, returns false, and set temp to 1. |
03 | text entry | Display a dialog with an OK button and a space for the user to type in a name. The next call to "make a new character" will use the typed name as the name of the new character. |
04 | tutorial | Display a tutorial dialog, with only an OK button. |
05 | Phone Book - Services | Display the phone book dialog for services - uses private string table 147 to get service choices in. Returns index selected in array0 at position 0. |
06 | Phone Book - Invite | Display the phone book dialog for calling one sim over. Returns neighbor ID of invitee in array0 at position 0. The main title of the phone book can be conifgured (NL onwards, i.e Node Version 0x01), as can the string in the top pane - using %s to substitue the name of the Sim currently selected in the lower portion of the Dialog. This dialog expects to be called with the Stack Object's array number 0 filled in with Neighbor IDs to display in the dialog. It returns the selected Neighbor ID in position 0 of this array. |
07 | Phone Book - Party | Display the phone book dialog for having a party. Returns neighbors invited in array0. |
08 | Text Notification | |
09 | Stop Text Notification | |
0A | Text Notification Modify | |
0B | Magazine Rack | This dialog doesn't have any configurable strings, however, it is already very generic, so that's not really an issue. It expects to be called with the Stack Object's array number 0 filled in with the IDs of objects to be displayed. |
0C | Jewelry Rack | |
0D | VideoGame Rack | |
0E | Food Rack | |
0F | Special Phone Services | |
10 | Clothing Purchase | |
11 | Clothing Selection | |
12 | Tutorial Task | |
13 | List Selection | |
14 | Clothing Try On | |
15 | Vanity Table | |
16 | TutorialNext | |
17 | Baby Name | |
18 | Set Aspiration | |
19 | TutorialNext Modal | |
1A | Set Major | |
1B | Resurrectonomitron | |
1C | Text Notification Append | |
1D | Move Grave To Lot | |
1E | Visit Neighbourhood Or Lot | |
1F | Dating Services | |
20 | Manage Groups | |
21 | Phone Groups | |
22 | Set Turn On/Off's | |
23 | Customize Your Craftable | |
24 | Sims Available for Hire | |
25 | Choose a Lot to Purchase | |
26 | Choose a Lot to Transfer Ownership | |
27 | Choose Owned Lot - Generic | |
28 | Set Price | |
29 | Dress Employee | |
2A | Food Rack | |
2B | VideoGame Rack (Unused) | |
2C | Jewelry Rack (Unused) | |
2D | Magazine Rack | |
2E | Clothing Rack | |
2F | Manage Business | |
30 | Set Wage | |
31 | Suggest an Outfit | |
32 | Offer Job | |
33 | Restaurant Menu | |
34 | Service Phone Book (GUIDs) | |
35 | Choose an Image to Paint | |
36 | Buy Collar | |
37 | Give Up Pet For Adoption | |
38 | Adopt a Pet | |
39 | Game Tip | |
3A | Make A Pet | |
3B | Change Pet Appearance | |
3C | Change Breed | |
3D | Register Breed | |
3E | Purchase Contained Pet | |
3F | Fridge Storage | |
40 | Give Gift | |
41 | Juicer Stocking | |
42 | Grab Leftovers | |
43 | unknown | |
44 | Visit Neighborhood Or Lot | |
45 | unknown | |
46 | Transportation Picker | |
47 | unknown | |
48 | unknown | |
49 | unknown |