mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-05 15:42:17 +03:00
chore(ui): improve CSimpleStatusBar ctor
Some checks are pending
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Waiting to run
Some checks are pending
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Waiting to run
This commit is contained in:
parent
3713a7ee89
commit
856bb72e1a
@ -28,10 +28,6 @@ void CSimpleStatusBar::RegisterScriptMethods(lua_State* L) {
|
|||||||
FrameScript_Object::FillScriptMethodTable(L, SimpleStatusBarMethods, NUM_SIMPLE_STATUS_BAR_SCRIPT_METHODS);
|
FrameScript_Object::FillScriptMethodTable(L, SimpleStatusBarMethods, NUM_SIMPLE_STATUS_BAR_SCRIPT_METHODS);
|
||||||
}
|
}
|
||||||
|
|
||||||
CSimpleStatusBar::CSimpleStatusBar(CSimpleFrame* parent) : CSimpleFrame(parent) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
FrameScript_Object::ScriptIx* CSimpleStatusBar::GetScriptByName(const char* name, ScriptData& data) {
|
FrameScript_Object::ScriptIx* CSimpleStatusBar::GetScriptByName(const char* name, ScriptData& data) {
|
||||||
auto script = this->CSimpleFrame::GetScriptByName(name, data);
|
auto script = this->CSimpleFrame::GetScriptByName(name, data);
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,11 @@ class CSimpleStatusBar : public CSimpleFrame {
|
|||||||
virtual void LoadXML(const XMLNode* node, CStatus* status);
|
virtual void LoadXML(const XMLNode* node, CStatus* status);
|
||||||
|
|
||||||
// Public member functions
|
// Public member functions
|
||||||
CSimpleStatusBar(CSimpleFrame* parent);
|
CSimpleStatusBar(CSimpleFrame* parent)
|
||||||
|
: CSimpleFrame(parent)
|
||||||
|
, m_changed(false)
|
||||||
|
, m_rangeSet(false)
|
||||||
|
, m_valueSet(false) {};
|
||||||
float GetMaxValue() const;
|
float GetMaxValue() const;
|
||||||
float GetMinValue() const;
|
float GetMinValue() const;
|
||||||
float GetValue() const;
|
float GetValue() const;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user