technology research button

This commit is contained in:
devZoGok
2024-03-09 14:49:04 +02:00
parent aaf1ee61b9
commit feef91c999
12 changed files with 70 additions and 10 deletions
+4
View File
@@ -24,6 +24,7 @@
#include "buildButton.h"
#include "trainButton.h"
#include "statsButton.h"
#include "researchButton.h"
namespace battleship{
using namespace std;
@@ -196,6 +197,9 @@ namespace battleship{
case STATISTICS:
button = new StatsButton(pos, size, name, (int)guiTable["trigger"], (string)guiTable["imagePath"]);
break;
case RESEARCH:
button = new ResearchButton(pos, size, name, (int)guiTable["trigger"], (string)guiTable["imagePath"], (int)SOL_LUA_STATE["UnitId"]["LAB"], (int)guiTable["techId"]);
break;
}
int typeArr[2]{(int)GuiElementType::BUTTON, (int)type};