home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Action 39
/
cdactioncoverdisc39b.iso
/
Demo1
/
Peacemaker
/
Gui
/
SIMWIDG.DAT
< prev
next >
Wrap
Text File
|
1999-02-05
|
3KB
|
91 lines
FSTPC 5
# MISSION SELECT SCREEN
# ACCEPT MISSION
# animation
Animation acceptmissionanim
(:area 0 0 32 32 :parent simgui :sub_path globals :file flip.sur :anim_area 0 0 96 64 :delay 50 :pause :reverse :share_anim)
# region
sRegion acceptmission
(:area 12 442 32 32 :parent simgui :graphic acceptmissionanim :cursor high :layer 1
(:Focus 2
1 GUI_play whooshsnd 0
2 GUI_graphic_play acceptmissionanim 0 4)
(:MLButtonDown 2
1 GUI_play clicksnd 0
2 GUI_graphic_play acceptmissionanim 4 5)
(:MLButtonUp 1
2 GUI_graphic_play acceptmissionanim 5 4)
(:UnFocus 1
2 GUI_graphic_play acceptmissionanim 4 0)
(:MLButtonClk 1
0 GUI_enter brfgui))
# CANCEL MISSION
# animation
Animation cancelmissionanim
(:area 0 0 32 32 :parent simgui :sub_path globals :file flip.sur :anim_area 0 0 96 64 :delay 50 :pause :reverse :share_anim)
# region
sRegion cancelmission
(:area 479 442 32 32 :parent simgui :graphic cancelmissionanim :cursor high :layer 1
(:Focus 2
1 GUI_play whooshsnd 0
2 GUI_graphic_play cancelmissionanim 0 4)
(:MLButtonDown 2
1 GUI_play clicksnd 0
2 GUI_graphic_play cancelmissionanim 4 5)
(:MLButtonUp 1
2 GUI_graphic_play cancelmissionanim 5 4)
(:UnFocus 1
2 GUI_graphic_play cancelmissionanim 4 0)
(:MLButtonClk 1
0 GUI_enter maingui))
# LISTBOX OF AVAILABLE MISSIONS
# contains a scrollable list of all the available missions
# MAIN BACK GRAPHIC
Bitmap select_back
(:area 0 0 572 330 :parent simgui :sub_path mission :file se_back.sur)
# HIGHLIGHT BAR GRAPHIC
Bitmap select_sel
(:area 0 0 572 22 :parent simgui :sub_path mission :file se_high.sur)
# SCROLLBAR GRAPHIC
Bitmap select_scrlbar
(:area 0 0 20 330 :parent simgui :sub_path mission :file se_side.sur)
# SCROLLBAR SLIDER GRAPHIC
Bitmap select_slider
(:area 0 0 20 10 :parent simgui :sub_path globals :file scr_upa.sur)
# SCROLLBAR
Scroller SelectScroller
(:area 602 60 20 330 :parent simgui :solid :graphic select_scrlbar :slider select_slider :layer 1
:active_change :start 0 0 :finish 0 330 :max_pos 12 :current_pos 0)
# scrollbar up down buttons
State3 selectscroll_up
(:area 602 56 20 10 :parent simgui :up scrup :down scrdown :high scrhi :cursor high :layer 1
(:MLButtonDown 1
1 GUI_play clicksnd 0)
(:MLButtonClk 1
1 GUI_change SelectScroller -1))
State3 selectscroll_down
(:area 602 404 20 10 :parent simgui :up scrup :down scrdown :high scrhi :cursor high :layer 1
(:MLButtonDown 1
1 GUI_play clicksnd 0)
(:MLButtonClk 1
1 GUI_change SelectScroller 1))
# LISTBOX
sListBox SelectListBox
(:area 18 70 572 330 :parent simgui :graphic select_back :selected_graphic select_sel :layer 1
:font fonta :scroller SelectScroller :internal_area 0 0 572 330 :item_height 24 :indent 3 3
(:Modified 1 0 select_mission simgui))
Paths 0 0