NetRoom/SelectBase/Music lua objects. Scrolling with lua funcs and binded to ctrl+pg up/down. Show prev msgs, binded to pg up/down. Music wheel move, selectmusic screen's select current song, chatbox visibility, input en/disabling and UserList visibility lua functions. (#1394)
This commit is contained in:
@@ -15,6 +15,9 @@ class ColorBitmapText : public BitmapText
|
||||
public:
|
||||
void SetText( const RString &sText, const RString &sAlternateText = "", int iWrapWidthPixels = -1 );
|
||||
void DrawPrimitives();
|
||||
int lines = 0;
|
||||
void ResetText();
|
||||
void SetMaxLines(int iNumLines, int iDirection, unsigned int &scroll);
|
||||
void SetMaxLines( int iLines, bool bCutBottom = true ); //if bCutBottom = false then, it will crop the top
|
||||
void SimpleAddLine( const RString &sAddition, int iWidthPixels );
|
||||
void SetMaxLines( int iNumLines, int iDirection );
|
||||
@@ -39,6 +42,24 @@ public:
|
||||
|
||||
void UpdateUsers();
|
||||
void UpdateTextInput();
|
||||
|
||||
|
||||
bool usersVisible = true;
|
||||
bool enableChatboxInput = true;
|
||||
void SetChatboxVisible(bool visibility);
|
||||
void SetUsersVisible(bool visibility);
|
||||
vector<BitmapText>* ToUsers();
|
||||
void Scroll(int movescroll);
|
||||
RString GetPreviousMsg();
|
||||
RString GetNextMsg();
|
||||
void SetInputText(RString text);
|
||||
void ShowPreviousMsg();
|
||||
void ShowNextMsg();
|
||||
unsigned int GetScroll() { return scroll; }
|
||||
unsigned int GetLines() { return m_textChatOutput.lines; }
|
||||
// Lua
|
||||
virtual void PushSelf(lua_State *L);
|
||||
|
||||
private:
|
||||
//Chatting
|
||||
ColorBitmapText m_textChatInput;
|
||||
@@ -46,6 +67,9 @@ private:
|
||||
AutoActor m_sprChatInputBox;
|
||||
AutoActor m_sprChatOutputBox;
|
||||
RString m_sTextInput;
|
||||
unsigned int m_sTextLastestInputsIndex;
|
||||
vector<RString> m_sTextLastestInputs;
|
||||
unsigned int scroll;
|
||||
RString m_actualText;
|
||||
|
||||
vector <BitmapText> m_textUsers;
|
||||
|
||||
Reference in New Issue
Block a user