Changeset View
Changeset View
Standalone View
Standalone View
source/gui/GUIObjectTypes.cpp
/* Copyright (C) 2020 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
Imarok: Update year. (same for the other files) | |||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
Show All 25 Lines | |||||
#include "gui/ObjectTypes/CTooltip.h" | #include "gui/ObjectTypes/CTooltip.h" | ||||
#include "gui/Scripting/JSInterface_GUIProxy.h" | #include "gui/Scripting/JSInterface_GUIProxy.h" | ||||
void CGUI::AddObjectTypes() | void CGUI::AddObjectTypes() | ||||
{ | { | ||||
m_ProxyData.insert(JSI_GUIProxy<IGUIObject>::CreateData(*m_ScriptInterface)); | m_ProxyData.insert(JSI_GUIProxy<IGUIObject>::CreateData(*m_ScriptInterface)); | ||||
m_ProxyData.insert(JSI_GUIProxy<CText>::CreateData(*m_ScriptInterface)); | m_ProxyData.insert(JSI_GUIProxy<CText>::CreateData(*m_ScriptInterface)); | ||||
m_ProxyData.insert(JSI_GUIProxy<CList>::CreateData(*m_ScriptInterface)); | m_ProxyData.insert(JSI_GUIProxy<CList>::CreateData(*m_ScriptInterface)); | ||||
m_ProxyData.insert(JSI_GUIProxy<CMiniMap>::CreateData(*m_ScriptInterface)); | |||||
m_ProxyData.insert(JSI_GUIProxy<CButton>::CreateData(*m_ScriptInterface)); | m_ProxyData.insert(JSI_GUIProxy<CButton>::CreateData(*m_ScriptInterface)); | ||||
AddObjectType("button", &CButton::ConstructObject); | AddObjectType("button", &CButton::ConstructObject); | ||||
AddObjectType("chart", &CChart::ConstructObject); | AddObjectType("chart", &CChart::ConstructObject); | ||||
AddObjectType("checkbox", &CCheckBox::ConstructObject); | AddObjectType("checkbox", &CCheckBox::ConstructObject); | ||||
AddObjectType("dropdown", &CDropDown::ConstructObject); | AddObjectType("dropdown", &CDropDown::ConstructObject); | ||||
AddObjectType("empty", &CGUIDummyObject::ConstructObject); | AddObjectType("empty", &CGUIDummyObject::ConstructObject); | ||||
AddObjectType("hotkeypicker", &CHotkeyPicker::ConstructObject); | AddObjectType("hotkeypicker", &CHotkeyPicker::ConstructObject); | ||||
Show All 11 Lines |
Wildfire Games · Phabricator
Update year. (same for the other files)