80 lines
2.4 KiB
C++
80 lines
2.4 KiB
C++
/* ScummVM - Graphic Adventure Engine
|
|
*
|
|
* ScummVM is the legal property of its developers, whose names
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
* file distributed with this source distribution.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#include "ags/plugins/core/label.h"
|
|
#include "ags/engine/ac/label.h"
|
|
|
|
namespace AGS3 {
|
|
namespace Plugins {
|
|
namespace Core {
|
|
|
|
void Label::AGS_EngineStartup(IAGSEngine *engine) {
|
|
ScriptContainer::AGS_EngineStartup(engine);
|
|
|
|
SCRIPT_METHOD(Label::GetText^1, Label::GetText);
|
|
SCRIPT_METHOD(Label::SetText^1, Label::SetText);
|
|
SCRIPT_METHOD(Label::get_Font, Label::GetFont);
|
|
SCRIPT_METHOD(Label::set_Font, Label::SetFont);
|
|
SCRIPT_METHOD(Label::get_Text, Label::GetText_New);
|
|
SCRIPT_METHOD(Label::set_Text, Label::SetText);
|
|
SCRIPT_METHOD(Label::get_TextColor, Label::GetColor);
|
|
SCRIPT_METHOD(Label::set_TextColor, Label::SetColor);
|
|
}
|
|
|
|
void Label::GetText(ScriptMethodParams ¶ms) {
|
|
PARAMS2(GUILabel *, labl, char *, buffer);
|
|
AGS3::Label_GetText(labl, buffer);
|
|
}
|
|
|
|
void Label::SetText(ScriptMethodParams ¶ms) {
|
|
PARAMS2(GUILabel *, labl, const char *, newtx);
|
|
AGS3::Label_SetText(labl, newtx);
|
|
}
|
|
|
|
void Label::GetFont(ScriptMethodParams ¶ms) {
|
|
PARAMS1(GUILabel *, labl);
|
|
params._result = AGS3::Label_GetFont(labl);
|
|
}
|
|
|
|
void Label::SetFont(ScriptMethodParams ¶ms) {
|
|
PARAMS2(GUILabel *, guil, int, fontnum);
|
|
AGS3::Label_SetFont(guil, fontnum);
|
|
}
|
|
|
|
void Label::GetText_New(ScriptMethodParams ¶ms) {
|
|
PARAMS1(GUILabel *, labl);
|
|
params._result = AGS3::Label_GetText_New(labl);
|
|
}
|
|
|
|
void Label::GetColor(ScriptMethodParams ¶ms) {
|
|
PARAMS1(GUILabel *, labl);
|
|
params._result = AGS3::Label_GetColor(labl);
|
|
}
|
|
|
|
void Label::SetColor(ScriptMethodParams ¶ms) {
|
|
PARAMS2(GUILabel *, labl, int, colr);
|
|
AGS3::Label_SetColor(labl, colr);
|
|
}
|
|
|
|
} // namespace Core
|
|
} // namespace Plugins
|
|
} // namespace AGS3
|