Kyzentun
c3fb210291
Created GameLoop::ChangeGame analogous to GameLoop::ChangeTheme. Changed ChangeTheme to use the AfterThemeChangeScreen metric instead of a passed in screen name from the theme being changed away from. ChangeGame uses the AfterGameChangeScreen and AfterGameAndThemeChangeScreen metrics to pick the screen to load after the change. New metrics are optional and default to InitialScreen. Changed ScreenManager::ThemeChanged to not duplicate the code in ReloadOverlayScreens. Fixed ScreenManager::IsScreenNameValid to check with HasMetric before using GetMetric. Changed game ConfOption logic to set the preference and work in a similar way to the theme ConfOption. Added THEME:SetTheme lua function.
2014-07-20 20:59:12 -06:00
Kyzentun
273b76d3c7
ActorUtil::ResolvePath updated for error reporting. Changed BitmapText to work with either a font name or a path. ThemeManager::GetPathInfoRaw fixed to use correct error dialog. ThemeManager::GetPathInfo fixed to report correct error for missing theme elements.
2014-07-14 18:02:28 -06:00
Kyzentun
fb1a251b7a
Changed many places that used RageException to use ReportScriptError instead. Wrote ScreenOptionsExample.ini as documentation example for the OptionRow system. Rewrote gamecommands.txt to include all GameCommands. Fixed Commands::GetOriginalCommandString to insert the semicolons that separated the original commands. Changed nonsensical boolean |= true statements in GameCommand.cpp to just use =. Added protection to ReportScriptError to keep it from recursing through itself when an error occurs in error reporting. Added UseAbort option to ReportScriptError for places that want to use an AbortRetryIgnore dialog to query the user. Added ScriptErrorMessage for places that need to handle the warning/dialog part separately. Added logging flag to MESSAGEMAN so that all messages broadcast can be logged when desired. Changed OptionRowHandler::LoadInternal to return a boolean success value as part of error handling.
2014-07-12 14:59:10 -06:00
Kyzentun
afc235e17b
Added THEME:GetMetricNamesInGroup and THEME:GetStringNamesInGroup.
2014-05-08 03:59:08 -06:00
sigatrev
f1fc291989
run profile's CustomLoadFunction when changing theme or assigning a local profile to a player
...
This should make the custom load functions a lot more useful.
2014-04-30 21:30:30 -05:00
Devin J. Pohly
a9d5931533
Command/LuaManager: add legacy command parsing
...
Only enabled when compiling via CompileXNodeTree.
2014-02-20 10:59:49 -05:00
Jason Felds
e82f2cfa2c
Attempt to warn about missing translations.
2014-02-03 21:18:04 -05:00
Ben "root" Anderson
a040c4a586
1) SOMEONE can't spell "accessible" 2) Global commenting consistency 3) persistance -> persistence
2013-11-30 09:50:54 -06:00
Jason Felds
575b6b8289
Remove unused label.
2013-06-08 22:22:15 -04:00
Devin J. Pohly
feb919f0bf
Revert memory leak commits
...
5f7001e : "Added a new branch"
01456ed : "Fixed a lot of memory leaks"
dac4493 : "Fixed all remaining memory leaks that I could figure out"
0792db7 : "Removed the smnew macro and the call to _CrtSetDbgFlag()"
Some of these caused destructor-time problems due to static initialization
order fiasco and related issues. Notably, the program would no longer exit on
OSX and had to be killed.
There were probably legitimate fixes in here, but since these are monolithic
commits it's too much work to extract them now. Let's reapply them
individually and in the forward direction.
2013-04-27 00:05:14 -04:00
Jason Felds
0c4fe367cc
Fix duplication symbol issue on Mac.
...
This may have affected Linux as well.
2013-04-21 09:31:45 -04:00
Shenjoku
0792db752a
Removed the smnew macro and the call to _CrtSetDbgFlag() to get ready for
...
merging with the main branch.
2013-04-19 20:34:11 -07:00
Shenjoku
01456ed0b9
Fixed a lot of memory leaks caused by static globals never getting
...
deleted and some other objects not getting deleted properly due to missing
destructors.
2013-04-18 21:17:57 -07:00
Shenjoku
5f7001ef0a
Added a new branch that implements support for outputting all memory leaks to
...
the debug output for the Debug and FastDebug project configurations. This
requires replacing all instances of new with a macro, smnew, that defines a
special form of new which outputs file and line number information along with
the memory leak details. This makes finding memory leaks much easier since you
can just double-click the leak in the output window and it will take you to the
line that caused it.
2013-04-17 20:42:29 -07:00
Devin J. Pohly
001ee51242
replace gotos with tail calls where appropriate
2013-01-25 17:22:23 -05:00
Devin J. Pohly
bd0e2074ad
replace ASSERT(0) with useful fail messages
2012-12-27 16:59:35 -05:00
Jason Felds
a15cbc431d
War on -Werror, part 14: More hodgepodge.
2012-12-27 12:45:04 -05:00
AJ Kelly
c7fab6014f
[Various] Allow loading of *.jpeg in addition to *.jpg.
2011-12-17 03:21:12 -06:00
AJ Kelly
0e56c9aeaf
oops
2011-09-26 17:57:05 -05:00
AJ Kelly
e590230968
[ThemeManager] Add global Scripts dir. [originally by shakesoda from broken]
2011-09-26 17:52:08 -05:00
AJ Kelly
fa12ff045b
[ThemeManager] Added DoesThemeExist(sTheme), IsThemeSelectable(sTheme), DoesLanguageExist(sLang), GetCurThemeName(), HasMetric(sGroup,sValue), and HasString(sGroup,sValue) Lua bindings.
2011-08-27 15:48:33 -05:00
AJ Kelly
ba60b894a2
minor change
2011-08-20 03:32:16 -05:00
Flameshadowxeroshin
c776367a03
added some code I am working on and properly added the RunLuaScripts binding
2011-08-18 23:56:16 -05:00
Flameshadowxeroshin
b6c2882362
okay dammit
2011-08-17 19:43:08 -05:00
Flameshadowxeroshin
fbc064dfba
add THEME:RunLuaScripts()
2011-08-17 19:33:47 -05:00
AJ Kelly
c2ec5614fa
change a todo
2011-08-07 13:46:02 -05:00
AJ Kelly
0c6154f9ed
small removal
2011-08-07 13:41:44 -05:00
Mark Cannon
e1a447cc36
revert henke's loadingwindow "improvements"; if you're reading this, henke, you do *NOT* sacrifice readability for misguided optimization, and you do *NOT* use a globally externed variable for something with a useful lifetime of part of one function
2011-08-06 21:33:49 +00:00
Henrik Andersson
813c2d8f09
[loading window] Theme loading should also list itself in the loading window.
2011-06-04 16:09:47 +02:00
Jason Felds
a085d0d1da
Line endings...be normalized!
2011-03-17 01:47:30 -04:00
Jason Felds
9d13036e08
Add @briefs to the Luna classes.
...
Yeah...there was a lot. */
2011-02-19 12:26:18 -05:00
Mark Cannon
2c9678ca65
fix PrefsManager init list not being in order, add hack to ThemeManager to make GetThemeName() work intuitively for Scripts dirs
2011-01-07 23:41:23 -05:00
AJ Kelly
20a1802758
add StripMacResourceForks(); hopefully prevents things like issue 178 ( http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=178 ) from happening again
2010-08-26 00:49:40 -05:00
AJ Kelly
2a8f11d031
fix smpackage compile.
2010-08-16 18:52:21 -05:00
AJ Kelly
65aafa5ccc
[ThemeManager] add GetSelectableThemeNames Lua binding; returns a table of themes as strings
2010-08-15 16:16:42 -05:00
AJ Kelly
c16de85e3a
add GetCurLanguage() Lua binding.
2010-05-26 00:09:05 -05:00
AJ Kelly
642f4b107c
the various changes that I forgot to commit (cleanup and so forth) into hg,
...
culminating in syncing with sm-ssc v1.0 public beta 2
2010-03-31 17:37:09 -05:00
AJ Kelly
dca9182138
various cleanup and commenting
2010-03-14 19:46:05 -05:00
AJ Kelly
02c7037721
sm-ssc v1.0 Public Beta 1 code changes
2010-03-01 00:44:39 -06:00
AJ Kelly
3e51544930
Initial commit.
2010-01-26 21:00:30 -06:00
Devin J. Pohly
80057f53cd
smsvn -> ssc-hg glue: rearrange directory structure
2013-06-10 15:38:43 -04:00