hzmachine

Hiptop Z Machine
git clone http://frotz.net/git/hzmachine.git
Log | Files | Refs | LICENSE

zmachine.rsrc (3090B)


      1 # -*- coding: utf-8 -*-
      2 
      3 package "net.frotz.zruntime"
      4 
      5 interface "Resources.java"
      6 events "Events.java"
      7 
      8 string ID_APP_NAME "Z Machine"
      9 string ID_APP_CLASS "net.frotz.zruntime.ZRuntime"
     10 
     11 data 1000 1000 "game.dat"
     12 
     13 bitmap ID_LARGE_ICON "graphics/icon32.png"
     14 bitmap ID_SMALL_ICON "graphics/icon16.png"
     15 bitmap ID_SPLASH_SCREEN "graphics/splash.png"
     16 
     17 string ID_LOCALE "en_US"
     18 
     19 menu MENU_MAIN
     20 	menuItem
     21 		title="View Transcript"
     22 		event=DO_VIEW_TRANSCRIPT
     23 		shortcut='t'
     24 	menuItem
     25 		title="View Notepad"
     26 		event=DO_VIEW_NOTEPAD
     27 		shortcut='n'
     28 	menuItem
     29 		title="About ZMachine"
     30 		event=DO_ABOUT
     31 endMenu	
     32 
     33 menu MENU_TRANSCRIPT
     34 	menuItem
     35 		title="View Notepad"
     36 		event=DO_VIEW_NOTEPAD
     37 		shortcut='n'
     38 	menuItem
     39 		title="Email Transcript"
     40 		event=DO_EMAIL_TRANSCRIPT
     41 		shortcut='e'
     42 	menuItem
     43 		title="Clear Transcript"
     44 		event=DO_CLEAR_TRANSCRIPT
     45 	menuItem
     46 		title="Return to Game"
     47 		shortcut='.'
     48 		event=TRANSCRIPT_DISMISS
     49 endMenu
     50 
     51 menu MENU_NOTEPAD
     52 	menuItem
     53 		title="View Transcript"
     54 		event=DO_VIEW_TRANSCRIPT
     55 		shortcut='t'
     56 	menuItem
     57 		title="Email Notepad"
     58 		event=DO_EMAIL_NOTEPAD
     59 		shortcut='e'
     60 	menuItem
     61 		title="Return to Game"
     62 		shortcut='.'
     63 		event=NOTEPAD_DISMISS
     64 endMenu
     65 
     66 dialog DIALOG_RESTORE 
     67 		title="Restore Game" centerVertically centerHorizontally
     68 
     69 	button title=okButton position=buttonBottom1 
     70 		event=RESTORE_OK
     71 
     72 	button title=cancelButton position=buttonTop1
     73 		event=RESTORE_CANCEL
     74 
     75 	popupMenu alignWithParentTop=4 left=42 fillToRight=3
     76 		id=ID_NAME_RESTORE
     77 		initialFocus
     78 
     79 	staticText text="Name" font=boldSysFont
     80 		positionToLeft=ID_NAME_RESTORE:2
     81 		alignVertical=ID_NAME_RESTORE
     82 	
     83 endDialog
     84 
     85 dialog DIALOG_SAVE showCancel
     86 		title="Save Game" centerVertically centerHorizontally
     87 
     88 	button title=okButton position=buttonBottom1 
     89 		event=SAVE_OK
     90 
     91 	button title=cancelButton position=buttonTop1
     92 		event=SAVE_CANCEL
     93 
     94 	textField alignWithParentTop=4 left=42 fillToRight=3
     95 		id=ID_NAME_SAVE
     96 		justifyLeft
     97 		maxLength=32
     98 		initialFocus
     99 	
    100 	staticText text="Name" font=boldSysFont
    101 		positionToLeft=ID_NAME_SAVE:2
    102 		alignVertical=ID_NAME_SAVE
    103 endDialog
    104 
    105 dialog DIALOG_ABOUT centerVertically centerHorizontally
    106 		title = "About Z Machine"
    107 
    108 	button title=okButton position=buttonBottom1
    109 		initialFocus
    110 
    111 	staticText 
    112 		alignWithParentTop=2
    113 		text="Copyright 2001-2003, Brian Swetland"
    114 		left=3 fillToRight=3
    115 		id=ID_COPYRIGHT
    116 		justifyCenter
    117 
    118 	staticText
    119 		positionBelow=ID_COPYRIGHT:2
    120 		text="Share and Enjoy!"
    121 		left=2 fillToRight=2
    122 		justifyCenter
    123 endDialog
    124 
    125 screen SCREEN_NOTEPAD
    126 	actionMenu=MENU_NOTEPAD
    127 	title="Game Notepad"
    128 
    129 	editText
    130 		alignWithParentTop=0
    131 		initialFocus
    132 		id=ID_TEXT_NOTEPAD
    133 		left=0 fillToRight=0 fillToBottom=0
    134 endScreen
    135 
    136 screen SCREEN_TRANSCRIPT
    137 	actionMenu=MENU_TRANSCRIPT
    138 	title="Game Transcript"
    139 
    140 	editText
    141 		alignWithParentTop=0
    142 		initialFocus
    143 		id=ID_TEXT_TRANSCRIPT
    144 		left=0 fillToRight=0 fillToBottom=0
    145 endScreen
    146 
    147 #alert ALERT_OVERWRITE
    148 #	title="Overwrite Saved Game?"
    149 #	text="Are you sure that you want to replace this existing saved game?"
    150 #
    151 #	button title=cancelButton position=buttonBottom1
    152 #	button title=okButton position=buttonBottom2
    153 #endAlert