MCPcopy Create free account
hub / github.com/NatLabRockies/SAM / fcall_active_case

Function fcall_active_case

src/script.cpp:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119static Case *CurrentCase() { return SamApp::Window()->GetCurrentCase(); }
120
121static void fcall_active_case( lk::invoke_t &cxt )
122{
123 LK_DOC( "active_case", "Sets the currently active case, or returns its name.", "([string:case name]):variant" );
124 if (cxt.arg_count() == 0 )
125 cxt.result().assign( SamApp::Window()->Project().GetCaseName( CurrentCase() ) );
126 else
127 cxt.result().assign( SamApp::Window()->SwitchToCaseWindow( cxt.arg(0).as_string() ) ? 1.0 : 0.0 );
128}
129
130static void fcall_varinfo( lk::invoke_t &cxt )
131{

Callers

nothing calls this directly

Calls 4

CurrentCaseFunction · 0.85
assignMethod · 0.80
SwitchToCaseWindowMethod · 0.80
GetCaseNameMethod · 0.45

Tested by

no test coverage detected