mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-18 05:31:07 +03:00
Compare commits
3 Commits
30b95e16ed
...
cdfe8cc807
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cdfe8cc807 | ||
|
|
d19658185a | ||
|
|
c12a79d6e6 |
@ -84,6 +84,26 @@ CONSOLELINE::~CONSOLELINE() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CONSOLELINE::Backspace() {
|
||||||
|
if (this->inputpos > this->inputstart) {
|
||||||
|
if (this->chars <= this->inputpos) {
|
||||||
|
this->buffer[this->inputpos - 1] = '\0';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
memcpy(
|
||||||
|
&this->buffer[this->inputpos - 1],
|
||||||
|
&this->buffer[this->inputpos],
|
||||||
|
this->chars - this->inputpos + 1
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
this->inputpos--;
|
||||||
|
this->chars--;
|
||||||
|
|
||||||
|
SetInputString(this->buffer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void DrawBackground() {
|
void DrawBackground() {
|
||||||
uint16_t indices[] = {
|
uint16_t indices[] = {
|
||||||
0, 1, 2, 3
|
0, 1, 2, 3
|
||||||
|
|||||||
@ -19,6 +19,7 @@ class CONSOLELINE : public TSLinkedNode<CONSOLELINE> {
|
|||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
~CONSOLELINE();
|
~CONSOLELINE();
|
||||||
|
void Backspace();
|
||||||
};
|
};
|
||||||
|
|
||||||
void ConsoleScreenAnimate(float elapsedSec);
|
void ConsoleScreenAnimate(float elapsedSec);
|
||||||
|
|||||||
@ -204,7 +204,13 @@ int32_t Script_ShowTerminationWithoutNoticeNotice(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_TerminationWithoutNoticeAccepted(lua_State* L) {
|
int32_t Script_TerminationWithoutNoticeAccepted(lua_State* L) {
|
||||||
WHOA_UNIMPLEMENTED(0);
|
if (CGlueMgr::m_acceptedTerminationWithoutNotice) {
|
||||||
|
lua_pushnumber(L, 1.0);
|
||||||
|
} else {
|
||||||
|
lua_pushnil(L);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_AcceptTerminationWithoutNotice(lua_State* L) {
|
int32_t Script_AcceptTerminationWithoutNotice(lua_State* L) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user