-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed ExpressDelivery info, started fixing chargen
- Loading branch information
Showing
12 changed files
with
254 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,79 @@ | ||
program cosplay2; | ||
unit cosplay2; | ||
{$LONGSTRINGS ON} | ||
|
||
uses gears,ui4gh,sdlgfx,sdlmenus,colormenu; | ||
|
||
Procedure RedrawOpening; | ||
{ The opening menu redraw procedure. } | ||
begin | ||
ClrScreen; | ||
InfoBox( ZONE_Menu ); | ||
end; | ||
|
||
Procedure BrowseByType( FPat: String; width,height,frames,ColorMode: Integer ); | ||
{ Browse the images by file pattern and color mode. } | ||
var | ||
FileMenu: RPGMenuPtr; | ||
SpriteName: String; | ||
begin | ||
FileMenu := CreateRPGMenu( MenuItem , MenuSelect , ZONE_Menu ); | ||
if FPat = '' then begin | ||
{ We want all the mecha. All of them!!! } | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'aer_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'ara_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'btr_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'gca_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'ger_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'ghu_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'hov_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'orn_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'zoa_*.png' ); | ||
|
||
end else BuildFileMenu( FileMenu , Graphics_Directory + FPat ); | ||
RPMSortAlpha( FileMenu ); | ||
AddRPGMenuItem( FileMenu, MsgString( 'EXIT' ), -1 ); | ||
SpriteName := ''; | ||
|
||
repeat | ||
SpriteName := SelectFile( FileMenu , @RedrawOpening ); | ||
if SpriteName <> '' then SelectColorPalette( ColorMode, SpriteName, '200 0 0 200 200 0 0 200 0', width, height, frames, @ClrScreen ); | ||
until SpriteName = ''; | ||
|
||
DisposeRPGMenu( FileMenu ); | ||
end; | ||
|
||
var | ||
FileMenu: RPGMenuPtr; | ||
N: Integer; | ||
|
||
begin | ||
FileMenu := CreateRPGMenu( MenuItem , MenuSelect , ZONE_Menu ); | ||
|
||
AddRPGMenuItem( FileMenu , 'Browse Portraits' , 1 ); | ||
AddRPGMenuItem( FileMenu , 'Browse Mecha' , 2 ); | ||
AddRPGMenuItem( FileMenu , 'Browse Monsters' , 3 ); | ||
AddRPGMenuItem( FileMenu , 'Browse All' , 4 ); | ||
|
||
repeat | ||
N := SelectMenu( FileMenu , @RedrawOpening ); | ||
case N of | ||
1: BrowseByType( 'por_*.png' , 100, 150, 0, colormenu_mode_character ); | ||
2: BrowseByType( '' , 64, 64, 8, colormenu_mode_mecha ); | ||
3: BrowseByType( 'monster_*.png' , 64, 64, 8, colormenu_mode_allcolors ); | ||
4: BrowseByType( '*.png' , 211, 308, 0, colormenu_mode_allcolors ); | ||
end; | ||
|
||
until N = -1; | ||
|
||
DisposeRPGMenu( FileMenu ); | ||
interface | ||
|
||
uses gears,ui4gh,sdlgfx,sdlmenus,colormenu; | ||
|
||
Procedure Cosplay(); | ||
|
||
|
||
implementation | ||
|
||
Procedure RedrawOpening; | ||
{ The opening menu redraw procedure. } | ||
begin | ||
ClrScreen; | ||
InfoBox( ZONE_Menu ); | ||
end; | ||
|
||
Procedure BrowseByType( FPat: String; width,height,frames,ColorMode: Integer ); | ||
{ Browse the images by file pattern and color mode. } | ||
var | ||
FileMenu: RPGMenuPtr; | ||
SpriteName: String; | ||
begin | ||
FileMenu := CreateRPGMenu( MenuItem , MenuSelect , ZONE_Menu ); | ||
if FPat = '' then begin | ||
{ We want all the mecha. All of them!!! } | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'aer_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'ara_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'btr_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'gca_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'ger_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'ghu_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'hov_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'orn_*.png' ); | ||
BuildFileMenu( FileMenu , Graphics_Directory + 'zoa_*.png' ); | ||
|
||
end else BuildFileMenu( FileMenu , Graphics_Directory + FPat ); | ||
RPMSortAlpha( FileMenu ); | ||
AddRPGMenuItem( FileMenu, MsgString( 'EXIT' ), -1 ); | ||
SpriteName := ''; | ||
|
||
repeat | ||
SpriteName := SelectFile( FileMenu , @RedrawOpening ); | ||
if SpriteName <> '' then SelectColorPalette( ColorMode, SpriteName, '200 0 0 200 200 0 0 200 0', width, height, frames, @ClrScreen ); | ||
until SpriteName = ''; | ||
|
||
DisposeRPGMenu( FileMenu ); | ||
end; | ||
|
||
Procedure Cosplay(); | ||
|
||
var | ||
FileMenu: RPGMenuPtr; | ||
N: Integer; | ||
|
||
begin | ||
FileMenu := CreateRPGMenu( MenuItem , MenuSelect , ZONE_Menu ); | ||
|
||
AddRPGMenuItem( FileMenu , 'Browse Portraits' , 1 ); | ||
AddRPGMenuItem( FileMenu , 'Browse Mecha' , 2 ); | ||
AddRPGMenuItem( FileMenu , 'Browse Monsters' , 3 ); | ||
AddRPGMenuItem( FileMenu , 'Browse All' , 4 ); | ||
|
||
repeat | ||
N := SelectMenu( FileMenu , @RedrawOpening ); | ||
case N of | ||
1: BrowseByType( 'por_*.png' , 100, 150, 0, colormenu_mode_character ); | ||
2: BrowseByType( '' , 64, 64, 8, colormenu_mode_mecha ); | ||
3: BrowseByType( 'monster_*.png' , 64, 64, 8, colormenu_mode_allcolors ); | ||
4: BrowseByType( '*.png' , 211, 308, 0, colormenu_mode_allcolors ); | ||
end; | ||
|
||
until N = -1; | ||
|
||
DisposeRPGMenu( FileMenu ); | ||
end; | ||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.