Permalink
Comparing changes
Open a pull request
- 2 commits
- 6 files changed
- 0 commit comments
- 1 contributor
Commits on Mar 06, 2018
Save the nice new icon for the next major release and its revamped GUI.
and have the app load stuff from the right locations. The .wav files are now found also when the app was started via double-click. The playback still doesn't work though, see #51.
Unified
Split
Showing
with
82 additions
and 26 deletions.
- 0 src/GettingStarted.htm → docs/GettingStarted.html
- BIN {src → media}/altwin.wav
- BIN {src → media}/click.wav
- BIN {src → media}/fanfare.wav
- +28 −7 src/GridView.cpp
- +54 −19 src/Resources.rdef
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
| @@ -1,13 +1,16 @@ | ||
| #include <Roster.h> | ||
| #include <Alert.h> | ||
| #include <Entry.h> | ||
| #include <Roster.h> | ||
| #include <MenuBar.h> | ||
| #include <MenuItem.h> | ||
| #include <Path.h> | ||
| #include <String.h> | ||
| #include <TranslationUtils.h> | ||
| #include <TranslatorFormats.h> | ||
| #include <MenuItem.h> | ||
| #include <MenuBar.h> | ||
|
|
||
| #include <stdio.h> | ||
| #include <stdlib.h> | ||
| #include <Entry.h> | ||
|
|
||
| #include "AboutWindow.h" | ||
| #include "GridView.h" | ||
| #include "Preferences.h" | ||
| @@ -50,7 +53,17 @@ LoadSoundFile(BFileGameSound*& sound, const char* file) | ||
| if (sound != NULL) | ||
| return; | ||
|
|
||
| sound = new BFileGameSound(file, false); | ||
| app_info info; | ||
| BPath path; | ||
| be_roster->GetAppInfo("application/x-vnd.wgp-LightsOff", &info); | ||
| BEntry entry(&info.ref); | ||
|
|
||
| entry.GetPath(&path); | ||
| path.GetParent(&path); | ||
| path.Append("media"); | ||
| path.Append(file); | ||
|
|
||
| sound = new BFileGameSound(path.Path(), false); | ||
|
|
||
| if (sound->InitCheck() == B_OK) { | ||
| sound->Preload(); | ||
| @@ -233,10 +246,18 @@ void GridView::MessageReceived(BMessage *msg) | ||
| { | ||
| case M_SHOW_MANUAL: | ||
| { | ||
| app_info info; | ||
| BPath path; | ||
| be_roster->GetActiveAppInfo(&info); | ||
| BEntry entry(&info.ref); | ||
|
|
||
| entry.GetPath(&path); | ||
| path.GetParent(&path); | ||
| path.Append("docs/GettingStarted.html"); | ||
|
|
||
| entry = path.Path(); | ||
| entry_ref ref; | ||
| BEntry entry("GettingStarted.htm"); | ||
| entry.GetRef(&ref); | ||
|
|
||
| be_roster->Launch(&ref); | ||
| break; | ||
| } | ||
| @@ -2,10 +2,10 @@ resource app_signature "application/x-vnd.wgp-LightsOff"; | ||
|
|
||
| resource app_version { | ||
| major = 1, | ||
| middle = 0, | ||
| middle = 1, | ||
| minor = 0, | ||
|
|
||
| variety = B_APPV_BETA, | ||
| variety = B_APPV_FINAL, | ||
| internal = 1, | ||
|
|
||
| short_info = "Lights Off", | ||
| @@ -14,23 +14,39 @@ resource app_version { | ||
|
|
||
| resource app_flags B_SINGLE_LAUNCH; | ||
|
|
||
| resource vector_icon array { | ||
| $"6E6369660A05000200060239BCD5357062B86B6C3CA1364826E0494737002652" | ||
| $"80FF122538020006023C15033A71ACB873493A166346BF9949CB5C00316BA6FF" | ||
| $"2B5987020006023A39972E8567AFC35B3B523345A11E4863C9002A4968FF203E" | ||
| $"5C0312253802001602399F0E3686A9B98DF63C8C42488EEB4924C900C2FF6D02" | ||
| $"0016023C15033A71ACB873493A166347FF994A15AE00F7FFD7020016023C9D60" | ||
| $"377C1EB78C243CA9674705BF48FA9100E6FFAD0586040174050A04223E224A2D" | ||
| $"4F2D420A042D422D4F334B333F0A04223E2D42333F283B0A1E224A223E243D22" | ||
| $"3C22B963242F222E2221271F3323332535243F283F2A41294B2D4B3749394B3A" | ||
| $"4B4649484B494B554559BDF555BE5B53BD19C7BAB92D50B9934EB86DC5D30A04" | ||
| $"455B575A60534B4C1D0A0901042020240A00010330202401178403040A050101" | ||
| $"2020240A0601002020240A0801022020240A050101202C290A060100202C290A" | ||
| $"080102202C290A05010120382E0A06010020382E0A08010220382E0A01010120" | ||
| $"20160A0201002020160A0301022020160A010101202C1B0A020100202C1B0A03" | ||
| $"0102202C1B0A0501012038200A0601002038200A0801022038200A0101012020" | ||
| $"080A0201002020080A0301022020080A050101202C0D0A060100202C0D0A0701" | ||
| $"02202C0D0A0101012038120A0201002038120A030102203812" | ||
| resource large_icon array { | ||
| $"1617171687878787878787878787878787878787878787878787878787ADAED4" | ||
| $"87871687878787878787878787878787878787878787878787878787ADAED4D4" | ||
| $"878787878711111111111111111111111111111111111111111111ADAED4D426" | ||
| $"AD1111A7ADADADADADADADADADADADADADADADADADADADADADADADAED4D42627" | ||
| $"ADADADAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4262703" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"AEAEAED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D425042728" | ||
| $"CED4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4F426270328" | ||
| $"D4D4D4F426040404040404040404040404040404040404040404042727282829" | ||
| $"D4F4262727030303030303030303030303030303030303030303032829292929" | ||
| $"F426272829292929292929292929292929292929292929292929292929292929" | ||
| $"2627282929292929292929292929292929292929292929292929292929292929" | ||
| }; | ||
|
|
||
| resource(1, "LightsOffAbout.jpg") #'JPEG' array { | ||
| @@ -435,6 +451,25 @@ resource(1, "LightsOffAbout.jpg") #'JPEG' array { | ||
| $"645D43B0F32D2CBFB9B972E5CBFAAE5FFC58FF00FFD9" | ||
| }; | ||
|
|
||
| resource mini_icon array { | ||
| $"87878787878787878787878787878787" | ||
| $"87D4D4D4D4D4D4D4D4D4D4D4D4D4D428" | ||
| $"87D4D4D4D4D4D4D4D4D4D4D4D4D4D428" | ||
| $"87D4D4D4D4D4D4D4D4D4D4D4D4D4D428" | ||
| $"87D4D4D4D4D4D4D4D4D4D4D4D4D4D428" | ||
| $"87D4D4D4D4D4D4D4D4D4D4D4D4D4D428" | ||
| $"87D4D4D4D4D4D4D4D4D4D4D4D4D4D428" | ||
| $"87D4D4D4D4D4D4D4D4D4D4D4D4D4D428" | ||
| $"87D4D4D4D4D4D4D4D4D4D4D4D4D4D428" | ||
| $"87D4D4D4D4D4D4D4D4D4D4D4D4D4D428" | ||
| $"87D4D4D4D4D4D4D4D4D4D4D4D4D4D428" | ||
| $"87D4D4D4D4D4D4D4D4D4D4D4D4D4D428" | ||
| $"87D4D4D4D4D4D4D4D4D4D4D4D4D4D428" | ||
| $"87D4D4D4D4D4D4D4D4D4D4D4D4D4D428" | ||
| $"87D4D4D4D4D4D4D4D4D4D4D4D4D4D428" | ||
| $"87282828282828282828282828282828" | ||
| }; | ||
|
|
||
| resource(1) #'PNG ' array { | ||
| $"89504E470D0A1A0A0000000D4948445200000020000000200806000000737A7A" | ||
| $"F40000015549444154789CEDD74B8EDB301045D16B99067AFFAB489694AF9186" | ||