Commit Graph

17 Commits

Author SHA1 Message Date
Colby Klein b4e02821e8 Revert "Improve handling of errors in lua functions and speed up calls. (#1427)"
This reverts commit f10e3ae36a.

(it was a joke PR, do not fear)
2017-04-04 17:21:55 -07:00
Kyzentun f10e3ae36a Improve handling of errors in lua functions and speed up calls. (#1427) 2017-04-04 11:36:23 -07:00
Jason Felds edabf4605b Clean up three sets of warnings:
* Ensure all switches have a default when working with enums.
* Match defined new[] calls with delete[] calls.
* Respect variable initialization order.
2016-03-24 18:30:29 -04:00
Kyzentun 9e5081476f Added timing menu options to Edit Mode that allow shifting and copying timing segments of a chosen type in the selected region or everywhere below the cursor. 2015-04-04 09:10:00 -06:00
Kyzentun b293a8c073 Added debug key for toggling action sounds off. Touches every place that RageSound::Play is called, hope I didn't miss one. 2015-02-28 06:25:02 -07:00
Kyzentun 95fe1a17e9 Replaced every use of lua_call with RunScriptOnStack. Modified RunScriptOnStack to report an error to log and system message using a passed in context string. Modified every use of RunScriptOnStack to avoid crashing so that the reported error can be seen. 2014-08-02 00:38:17 -07:00
Ben "root" Anderson 26986db6d3 ArchHooks: new function, GetClipboard(). ArchHooks_Win32: Implementd GetClipboard(). ScreenTextEntry: Allow pasting from clipboard. 2014-01-14 13:36:34 -06:00
Devin J. Pohly d13ac7e7a2 modify Input() on screens to return boolean 2013-01-12 22:48:38 -05:00
Jason Felds dbdab4759e [Xcode4] May as well fix switch warnings.
Still need some assistance for the linker error.
2011-07-20 11:11:04 -04:00
AJ Kelly cd9c8e97d2 [ScreenTextEntry] Make it so only the keyboard's Enter key can finish the screen. Should fix issues with buttons whose secondary function is MenuStart. 2011-06-13 15:47:11 -05:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
AJ Kelly edc9592c31 future ideas... 2011-02-23 13:27:02 -06:00
Jason Felds 9d13036e08 Add @briefs to the Luna classes.
Yeah...there was a lot. */
2011-02-19 12:26:18 -05:00
AJ Kelly 17e557c396 [ScreenTextEntry] Added Load(TextEntrySettings) Lua binding. [freem]
TextEntrySettings is implemented similar to the Attributes in BitmapText.

example settings and explanation:
local teSettings = {
	SendOnPop = "",					-- ScreenMessage to send on pop (optional, "SM_None" if omitted)
	Question = "",					-- The question to display
	InitialAnswer = "",				-- Initial answer text
	MaxInputLength = 0,				-- Maximum amount of characters
	Password = false,				-- Mask character input (optional)
	Validate = nil,					-- Validation function; function(answer, errorOut), must return boolean, string.
	OnOK = nil,						-- On OK; function(answer)
	OnCancel = nil,					-- On Cancel; function()
	ValidateAppend = nil,			-- Validate appending a character; function(answer,append), must return boolean
	FormatAnswerForDisplay = nil,	-- Format answer for display; function(answer), must return string
};
2011-01-12 13:11:41 -06:00
AJ Kelly 4c8cec8489 [ScreenTextEntry] replace hardcoded underscore and double space with AnswerCaret and AnswerBlank strings 2010-07-03 21:15:25 -05: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