Skip to content

Commit

Permalink
Extract button
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbatalov committed Nov 17, 2022
1 parent d216390 commit 18564e3
Show file tree
Hide file tree
Showing 25 changed files with 1,303 additions and 1,260 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ add_executable(${EXECUTABLE_NAME} WIN32
"src/plib/assoc/assoc.h"
"src/plib/color/color.c"
"src/plib/color/color.h"
"src/plib/gnw/button.c"
"src/plib/gnw/button.h"
"src/plib/gnw/debug.c"
"src/plib/gnw/debug.h"
"src/plib/gnw/doscmdln.c"
Expand Down
1 change: 1 addition & 0 deletions src/core.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "core.h"

#include "plib/color/color.h"
#include "plib/gnw/button.h"
#include "plib/gnw/dxinput.h"
#include "draw.h"
#include "plib/gnw/memory.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/automap.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "plib/gnw/memory.h"
#include "game/object.h"
#include "plib/gnw/text.h"
#include "plib/gnw/button.h"
#include "plib/gnw/gnw.h"

#define AUTOMAP_OFFSET_COUNT (AUTOMAP_MAP_COUNT * ELEVATION_COUNT)
Expand Down
1 change: 1 addition & 0 deletions src/game/bmpdlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "game/gsound.h"
#include "game/message.h"
#include "plib/gnw/text.h"
#include "plib/gnw/button.h"
#include "plib/gnw/gnw.h"
#include "game/wordwrap.h"

Expand Down
1 change: 1 addition & 0 deletions src/game/combat.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "plib/gnw/text.h"
#include "game/tile.h"
#include "game/trait.h"
#include "plib/gnw/button.h"
#include "plib/gnw/gnw.h"

#define CALLED_SHOT_WINDOW_X 68
Expand Down
1 change: 1 addition & 0 deletions src/game/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "game/intface.h"
#include "plib/gnw/memory.h"
#include "plib/gnw/text.h"
#include "plib/gnw/button.h"
#include "plib/gnw/gnw.h"

// The maximum number of lines display monitor can hold. Once this value
Expand Down
1 change: 1 addition & 0 deletions src/game/editor.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "game/cycle.h"
#include "db.h"
#include "game/bmpdlog.h"
#include "plib/gnw/button.h"
#include "plib/gnw/debug.h"
#include "draw.h"
#include "game/game.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "game/map.h"
#include "game/pipboy.h"
#include "game/scripts.h"
#include "plib/gnw/button.h"
#include "plib/gnw/gnw.h"

// The maximum number of elevator levels.
Expand Down
1 change: 1 addition & 0 deletions src/game/gdialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "plib/gnw/text.h"
#include "game/textobj.h"
#include "game/tile.h"
#include "plib/gnw/button.h"
#include "plib/gnw/gnw.h"

// NOTE: Rare case - as a compatibility measure with Community Edition, this
Expand Down
1 change: 1 addition & 0 deletions src/game/intface.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "game/stat.h"
#include "plib/gnw/text.h"
#include "game/tile.h"
#include "plib/gnw/button.h"
#include "plib/gnw/gnw.h"

#define INDICATOR_BAR_X 0
Expand Down
1 change: 1 addition & 0 deletions src/game/inventry.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "core.h"
#include "game/critter.h"
#include "game/bmpdlog.h"
#include "plib/gnw/button.h"
#include "plib/gnw/debug.h"
#include "int/dialog.h"
#include "game/display.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/loadsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "game/critter.h"
#include "game/cycle.h"
#include "game/bmpdlog.h"
#include "plib/gnw/button.h"
#include "plib/gnw/debug.h"
#include "game/display.h"
#include "draw.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/mainmenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "game/gsound.h"
#include "game/options.h"
#include "game/palette.h"
#include "plib/gnw/button.h"
#include "plib/gnw/text.h"
#include "game/version.h"

Expand Down
1 change: 1 addition & 0 deletions src/game/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "plib/gnw/text.h"
#include "game/textobj.h"
#include "game/tile.h"
#include "plib/gnw/button.h"
#include "plib/gnw/gnw.h"

#define PREFERENCES_WINDOW_WIDTH 640
Expand Down
1 change: 1 addition & 0 deletions src/game/pipboy.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "game/critter.h"
#include "game/cycle.h"
#include "game/bmpdlog.h"
#include "plib/gnw/button.h"
#include "plib/gnw/debug.h"
#include "draw.h"
#include "game/game.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/select.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "core.h"
#include "game/critter.h"
#include "db.h"
#include "plib/gnw/button.h"
#include "plib/gnw/debug.h"
#include "draw.h"
#include "game/game.h"
Expand Down
2 changes: 2 additions & 0 deletions src/game/skilldex.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "plib/color/color.h"
#include "core.h"
#include "game/cycle.h"
#include "plib/gnw/button.h"
#include "plib/gnw/debug.h"
#include "draw.h"
#include "game/game.h"
Expand All @@ -21,6 +22,7 @@
#include "game/skill.h"
#include "plib/gnw/rect.h"
#include "plib/gnw/text.h"
#include "plib/gnw/button.h"
#include "plib/gnw/gnw.h"

#define SKILLDEX_WINDOW_RIGHT_MARGIN 4
Expand Down
1 change: 1 addition & 0 deletions src/game/worldmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "game/cycle.h"
#include "db.h"
#include "game/bmpdlog.h"
#include "plib/gnw/button.h"
#include "plib/gnw/debug.h"
#include "game/display.h"
#include "draw.h"
Expand Down
1 change: 1 addition & 0 deletions src/int/widget.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <string.h>

#include "int/datafile.h"
#include "plib/gnw/button.h"
#include "plib/gnw/debug.h"
#include "draw.h"
#include "plib/gnw/rect.h"
Expand Down
Loading

0 comments on commit 18564e3

Please sign in to comment.