Difference between revisions of "0x0024"

From SimsWiki
Jump to: navigation, search
(Dialog Types)
Line 15: Line 15:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
!Num!!Dialog Type!!Picture & Notes
+
!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||Fire Forget Append
+
|1C||Text Notification Append
 
|-
 
|-
 
|1D||Move Grave To Lot
 
|1D||Move Grave To Lot
 
|-
 
|-
|1E||Visit Another Lot
+
|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: [none]
+
|26||Choose a Lot to Transfer Ownership
 
|-
 
|-
|27||Choose a Lot
+
|27||Choose Owned Lot - Generic
 
|-
 
|-
 
|28||Set Price
 
|28||Set Price
 
|-
 
|-
|29||Plan Business Outfit
+
|29||Dress Employee
 
|-
 
|-
|2A||Buy Food
+
|2A||Food Rack
 
|-
 
|-
|2B||Make Selection (Stock Remaining)
+
|2B||VideoGame Rack (Unused)
 
|-
 
|-
|2C||"
+
|2C||Jewelry Rack (Unused)
 
|-
 
|-
|2D||"
+
|2D||Magazine Rack
 
|-
 
|-
|2E||Buy Clothing
+
|2E||Clothing Rack
 
|-
 
|-
|2F||unknown (blank)
+
|2F||Manage Business
 
|-
 
|-
 
|30||Set Wage
 
|30||Set Wage
Line 117: Line 117:
 
|31||Suggest an Outfit
 
|31||Suggest an Outfit
 
|-
 
|-
|32||Would you like to hire?
+
|32||Offer Job
 
|-
 
|-
|33||Unknown
+
|33||Restaurant Menu
 
|-
 
|-
|34||Unknown
+
|34||Service Phone Book (GUIDs)
 
|-
 
|-
|35||Unknown
+
|35||Choose an Image to Paint
 
|-
 
|-
|36||Unknown
+
|36||Buy Collar
 
|-
 
|-
|37||Unknown
+
|37||Give Up Pet For Adoption
 
|-
 
|-
|38||Unknown
+
|38||Adopt a Pet
 
|-
 
|-
|39||Unknown
+
|39||Game Tip
 
|-
 
|-
|3A||Unknown
+
|3A||Make A Pet
 
|-
 
|-
|3B||Unknown
+
|3B||Change Pet Appearance
 
|-
 
|-
|3C||Unknown
+
|3C||Change Breed
 
|-
 
|-
|3D||Unknown
+
|3D||Register Breed
 
|-
 
|-
|3E||Unknown
+
|3E||Purchase Contained Pet
 
|-
 
|-
|3F||Unknown
+
|3F||Fridge Storage
 
|-
 
|-
|40||Unknown
+
|40||Give Gift
 
|-
 
|-
|41||Stock Fresh Produce (Found in Juicer)
+
|41||Juicer Stocking
 +
|-
 +
|42||Grab Leftovers
 +
|-
 +
|43||unknown
 +
|-
 +
|44||Visit Neighborhood Or Lot
 +
|-
 +
|45||unknown
 +
|-
 +
|46||Transportation Picker
 +
|-
 +
|47||unknown
 +
|-
 +
|48||unknown
 +
|-
 +
|49||unknown
 
|}
 
|}
 
Message type "00" will show a message with just the "OK" button, while message type "02" will provide a message with three buttons: yes, no, cancel.
 

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

Dialog 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
Example Phone Book Dialog
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
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 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
Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox