forked from HarbourMasters/Shipwright
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
494 additions
and
411 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#include "SohMenu.h" | ||
|
||
namespace SohGui { | ||
|
||
extern std::shared_ptr<SohMenu> mSohMenu; | ||
using namespace UIWidgets2; | ||
|
||
void SohMenu::AddMenuDevTools() { | ||
// Add Dev Tools Menu | ||
AddMenuEntry("Dev Tools", "gSettings.Menu.DevToolsSidebarSection"); | ||
|
||
// Menu 1 | ||
AddSidebarEntry("Dev Tools", "General", 3); | ||
WidgetPath path = { "Dev Tools", "General", SECTION_COLUMN_1 }; | ||
|
||
AddWidget(path, "Filler1", WIDGET_TEXT); | ||
|
||
// AddWidget(path, "Popout Menu", WIDGET_CVAR_CHECKBOX) | ||
// .CVar("gSettings.Menu.Popout") | ||
// .Options(CheckboxOptions().Tooltip("Changes the menu display from overlay to windowed.")); | ||
// | ||
//// dev tools windows | ||
// path = { "Developer Tools", "Collision Viewer", SECTION_COLUMN_1 }; | ||
// AddSidebarEntry("Developer Tools", "Collision Viewer", 1); | ||
// AddWidget(path, "Popout Collision Viewer", WIDGET_WINDOW_BUTTON) | ||
// .CVar("gWindows.CollisionViewer") | ||
// .Options(ButtonOptions().Tooltip("Makes collision visible on screen").Size(Sizes::Inline)) | ||
// .WindowName("Collision Viewer"); | ||
|
||
// path = { "Developer Tools", "Stats", SECTION_COLUMN_1 }; | ||
// AddSidebarEntry("Developer Tools", "Stats", 1); | ||
// AddWidget(path, "Popout Stats", WIDGET_WINDOW_BUTTON) | ||
// .CVar("gOpenWindows.Stats") | ||
// .Options(ButtonOptions().Tooltip( | ||
// "Shows the stats window, with your FPS and frametimes, and the OS you're playing on")) | ||
// .WindowName("Stats"); | ||
|
||
// path = { "Developer Tools", "Console", SECTION_COLUMN_1 }; | ||
// AddSidebarEntry("Developer Tools", "Console", 1); | ||
// AddWidget(path, "Popout Console", WIDGET_WINDOW_BUTTON) | ||
// .CVar("gOpenWindows.Console") | ||
// .Options(ButtonOptions().Tooltip( | ||
// "Enables the console window, allowing you to input commands. Type help for some examples")) | ||
// .WindowName("Console"); | ||
|
||
// path = { "Developer Tools", "Gfx Debugger", SECTION_COLUMN_1 }; | ||
// AddSidebarEntry("Developer Tools", "Gfx Debugger", 1); | ||
// AddWidget(path, "Popout Gfx Debugger", WIDGET_WINDOW_BUTTON) | ||
// .CVar("gOpenWindows.GfxDebugger") | ||
// .Options(ButtonOptions().Tooltip( | ||
// "Enables the Gfx Debugger window, allowing you to input commands, type help for some examples")) | ||
// .WindowName("GfxDebuggerWindow"); | ||
|
||
// path = { "Developer Tools", "Save Editor", SECTION_COLUMN_1 }; | ||
// AddSidebarEntry("Developer Tools", "Save Editor", 1); | ||
// AddWidget(path, "Popout Save Editor", WIDGET_WINDOW_BUTTON) | ||
// .CVar("gWindows.SaveEditor") | ||
// .Options(ButtonOptions().Tooltip("Enables the Save Editor window, allowing you to edit your save file")) | ||
// .WindowName("Save Editor"); | ||
|
||
// path = { "Developer Tools", "Actor Viewer", SECTION_COLUMN_1 }; | ||
// AddSidebarEntry("Developer Tools", "Actor Viewer", 1); | ||
// AddWidget(path, "Popout Actor Viewer", WIDGET_WINDOW_BUTTON) | ||
// .CVar("gWindows.ActorViewer") | ||
// .Options(ButtonOptions().Tooltip("Enables the Actor Viewer window, allowing you to view actors in the | ||
// world.")) .WindowName("Actor Viewer"); | ||
|
||
// path = { "Developer Tools", "Event Log", SECTION_COLUMN_1 }; | ||
// AddSidebarEntry("Developer Tools", "Event Log", 1); | ||
// AddWidget(path, "Popout Event Log", WIDGET_WINDOW_BUTTON) | ||
// .CVar("gWindows.EventLog") | ||
// .Options(ButtonOptions().Tooltip("Enables the event log window")) | ||
// .WindowName("Event Log"); | ||
} | ||
|
||
} // namespace SohGui |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#include "SohMenu.h" | ||
|
||
namespace SohGui { | ||
|
||
extern std::shared_ptr<SohMenu> mSohMenu; | ||
using namespace UIWidgets2; | ||
|
||
void SohMenu::AddMenuEnhancements() { | ||
// Add Enhancements Menu | ||
AddMenuEntry("Enhancements", "gSettings.Menu.EnhancementsSidebarSection"); | ||
|
||
// Menu 1 | ||
WidgetPath path = { "Enhancements", "Menu 1", SECTION_COLUMN_1 }; | ||
AddSidebarEntry("Enhancements", "Menu 1", 3); | ||
|
||
AddWidget(path, "Menu 1 filler", WIDGET_TEXT); | ||
|
||
// Cheats | ||
path.sidebarName = "Cheats"; | ||
AddSidebarEntry("Enhancements", "Cheats", 3); | ||
|
||
AddWidget(path, "Cheats filler", WIDGET_TEXT); | ||
|
||
// HUD Editor | ||
// path = { "Enhancements", "HUD Editor", SECTION_COLUMN_1 }; | ||
// AddSidebarEntry("Enhancements", "HUD Editor", 1); | ||
// AddWidget(path, "Popout HUD Editor", WIDGET_WINDOW_BUTTON) | ||
// .CVar("gWindows.HudEditor") | ||
// .WindowName("HUD Editor") | ||
// .Options(ButtonOptions() | ||
// .Tooltip("Enables the HUD Editor window, allowing you to modify your HUD") | ||
// .Size(Sizes::Inline)); | ||
|
||
//// Item Tracker Settings | ||
// path = { "Enhancements", "Item Tracker", SECTION_COLUMN_1 }; | ||
// AddSidebarEntry("Enhancements", "Item Tracker", 1); | ||
// AddWidget(path, "Popout Item Tracker", WIDGET_WINDOW_BUTTON) | ||
// .CVar("gWindows.ItemTracker") | ||
// .WindowName("Item Tracker Settings"); | ||
} | ||
|
||
} // namespace SohGui |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "SohMenu.h" | ||
|
||
namespace SohGui { | ||
|
||
extern std::shared_ptr<SohMenu> mSohMenu; | ||
using namespace UIWidgets2; | ||
|
||
void SohMenu::AddMenuNetwork() { | ||
// Add Network Menu | ||
AddMenuEntry("Network", "gSettings.Menu.NetworkSidebarSection"); | ||
|
||
// General | ||
AddSidebarEntry("Network", "General", 3); | ||
WidgetPath path = { "Network", "General", SECTION_COLUMN_1 }; | ||
|
||
AddWidget(path, "Filler1", WIDGET_TEXT); | ||
} | ||
|
||
} // namespace SohGui |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "SohMenu.h" | ||
|
||
namespace SohGui { | ||
|
||
extern std::shared_ptr<SohMenu> mSohMenu; | ||
using namespace UIWidgets2; | ||
|
||
void SohMenu::AddMenuRandomizer() { | ||
// Add Randomizer Menu | ||
AddMenuEntry("Randomizer", "gSettings.Menu.RandomizerSidebarSection"); | ||
|
||
// Menu 1 | ||
WidgetPath path = { "Randomizer", "Menu 1", SECTION_COLUMN_1 }; | ||
AddSidebarEntry("Randomizer", "Menu 1", 3); | ||
|
||
AddWidget(path, "Filler1", WIDGET_TEXT); | ||
} | ||
|
||
} // namespace SohGui |
Oops, something went wrong.