Add Debug option to Scene Menu (TestPlay only) #966

Merged
merged 3 commits into from Aug 4, 2016

Projects

None yet

2 participants

@Ghabry
Member
Ghabry commented Aug 1, 2016

Related #948

All applies to TestPlay mode only:

This makes accessing our debug scene easier, when in TestPlay mode a "Debug" item will be shown in the normal menu.

The debug sceen also got 2 new options (besides var and switch editing): Save and Load, they do what the name says (and ignore "save forbidden" setting).

Some games forbid menu calling but don't worry, this can be overriden with "Shift+5x B" (when SHIFT is not pressed anymore the counter is reset).

@Ghabry Ghabry Add Debug menu item to Scene_Menu and add a menu call overwrite to Sc…
…ene_Map (Shift + 5x Cancel). Both TestPlay only.
c15b4b0
@carstene1ns carstene1ns commented on an outdated diff Aug 1, 2016
src/scene_debug.cpp
}
var_window->UpdateList(range_page * 100 + range_index * 10 + 1);
UpdateRangeListWindow();
var_window->Refresh();
}
+
+ if (current_var_type == TypeSwitch) {
+ var_window->SetShowSwitch(true);
+ } else if (current_var_type == TypeInt) {
+ var_window->SetShowSwitch(false);
+ }
+
+ var_window->SetVisible(current_var_type != TypeGeneral);
+
+ printf("%d\n", current_var_type);
@carstene1ns
carstene1ns Aug 1, 2016 Member

debug leftover.

@Ghabry
Member
Ghabry commented Aug 2, 2016 edited

Yeah that was an oversight :/

For testing I recommend Ib because it blocks the main menu: https://easyrpg.org/play/pr966/?game=ib&test-play

Ghabry added some commits Aug 1, 2016
@Ghabry Ghabry Debug Scene: Add new page "General" which offers Save and Load options fc181c3
@Ghabry Ghabry Menu: Don't disable debug item when party is empty
119c42a
@Ghabry
Member
Ghabry commented Aug 2, 2016

Sorry for the noise. Somehow some local files got added when I ammended -.-

@carstene1ns carstene1ns merged commit 3682086 into EasyRPG:master Aug 4, 2016

6 checks passed

Android (armeabi-v7a) Build finished.
Details
GNU/Linux Build finished.
Details
OSX Build finished.
Details
Windows (x64) Build finished.
Details
Windows (x86) Build finished.
Details
web Build finished.
Details
@Ghabry Ghabry deleted the Ghabry:debug branch Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment