mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-18 05:31:07 +03:00
feat(ui): implement Script_GetBonusBarOffset
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
43895197af
commit
7ec9a35b4b
@ -83,7 +83,9 @@ int32_t Script_IsActionInRange(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t Script_GetBonusBarOffset(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
lua_pushnumber(L, CGActionBar::GetBonusBarOffset());
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int32_t Script_GetMultiCastBarOffset(lua_State* L) {
|
||||
|
||||
@ -1,4 +1,9 @@
|
||||
#include "ui/game/CGActionBar.hpp"
|
||||
|
||||
uint32_t CGActionBar::s_bonusBarOffset;
|
||||
uint32_t CGActionBar::s_currentPage;
|
||||
uint32_t CGActionBar::s_tempPageActiveFlags;
|
||||
|
||||
uint32_t CGActionBar::GetBonusBarOffset() {
|
||||
return CGActionBar::s_bonusBarOffset;
|
||||
}
|
||||
|
||||
@ -5,9 +5,16 @@
|
||||
|
||||
class CGActionBar {
|
||||
public:
|
||||
// Static variables
|
||||
// Public static variables
|
||||
static uint32_t s_currentPage;
|
||||
static uint32_t s_tempPageActiveFlags;
|
||||
|
||||
// Public static functions
|
||||
static uint32_t GetBonusBarOffset();
|
||||
|
||||
private:
|
||||
// Private static variables
|
||||
static uint32_t s_bonusBarOffset;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user