dialogs
This commit is contained in:
parent
f93a8586ae
commit
644983408e
@ -90,6 +90,7 @@ public:
|
|||||||
std::vector<std::string> dialogTextures = { // Список диалогов
|
std::vector<std::string> dialogTextures = { // Список диалогов
|
||||||
"./start_dialog.bmp",
|
"./start_dialog.bmp",
|
||||||
"./next_dialog.bmp",
|
"./next_dialog.bmp",
|
||||||
|
"./final_dialog.bmp",
|
||||||
};
|
};
|
||||||
int dialogIndex = 0; // Текущий индекс диалога
|
int dialogIndex = 0; // Текущий индекс диалога
|
||||||
std::shared_ptr<Texture> dialogTexturePtr; // Активная текстура диалога
|
std::shared_ptr<Texture> dialogTexturePtr; // Активная текстура диалога
|
||||||
|
|||||||
@ -216,7 +216,7 @@ void RenderSystem::drawUI(const GameObjectManager& gameObjects) {
|
|||||||
float xPos = Environment::width / 2.0f - 250; // Центрируем
|
float xPos = Environment::width / 2.0f - 250; // Центрируем
|
||||||
float yPos = Environment::height / 2.0f - 125; // Центрируем
|
float yPos = Environment::height / 2.0f - 125; // Центрируем
|
||||||
renderer.TranslateMatrix(Vector3f{xPos, yPos, 0.0f});
|
renderer.TranslateMatrix(Vector3f{xPos, yPos, 0.0f});
|
||||||
renderer.ScaleMatrix(Vector3f{1.5f, 1.5f, 1.0f}); // Увеличиваем размер
|
renderer.ScaleMatrix(Vector3f{10.5f, 10.5f, 1.0f}); // Увеличиваем размер
|
||||||
glBindTexture(GL_TEXTURE_2D, gameObjects.dialogTexturePtr->getTexID());
|
glBindTexture(GL_TEXTURE_2D, gameObjects.dialogTexturePtr->getTexID());
|
||||||
renderer.DrawVertexRenderStruct(gameObjects.inventoryIconMeshMutable); // Используем 2D меш инвентаря
|
renderer.DrawVertexRenderStruct(gameObjects.inventoryIconMeshMutable); // Используем 2D меш инвентаря
|
||||||
renderer.PopMatrix();
|
renderer.PopMatrix();
|
||||||
|
|||||||
BIN
final_dialog.bmp
Normal file
BIN
final_dialog.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 MiB |
Loading…
Reference in New Issue
Block a user