Mercurial > LightClone
comparison LightClone/Source/World.cpp @ 26:3a63df04f3c0
Several Gui enhancements; Drag and drop should work; Added resource caching
author | koryspansel |
---|---|
date | Fri, 16 Sep 2011 15:28:15 -0700 |
parents | 4ee162fc3537 |
children | 5656c8e382fc |
comparison
equal
deleted
inserted
replaced
25:eae13b04b06f | 26:3a63df04f3c0 |
---|---|
320 pLabel->SetPosition(0.5f * ScreenSizeX, 0.5f * ScreenSizeY); | 320 pLabel->SetPosition(0.5f * ScreenSizeX, 0.5f * ScreenSizeY); |
321 */ | 321 */ |
322 | 322 |
323 pLevelDialog = new GuiImage(); | 323 pLevelDialog = new GuiImage(); |
324 pLevelDialog->Initialize(pResourceManager); | 324 pLevelDialog->Initialize(pResourceManager); |
325 pLevelDialog->SetVisible(false); | 325 pLevelDialog->ClearFlag(GuiElementFlag_Visible); |
326 pLevelDialog->SetTexture("Data\\Textures\\Dialog0.tga", true); | 326 pLevelDialog->SetTexture("Data\\Textures\\Dialog0.tga", true); |
327 pLevelDialog->SetPosition(0.5f * (ScreenSizeX - pLevelDialog->GetWidth()), 0.5f * (ScreenSizeY - pLevelDialog->GetHeight())); | 327 pLevelDialog->SetPosition(0.5f * (ScreenSizeX - pLevelDialog->GetWidth()), 0.5f * (ScreenSizeY - pLevelDialog->GetHeight())); |
328 | 328 |
329 pLevelDialogOk = new GuiButton(); | 329 pLevelDialogOk = new GuiButton(); |
330 pLevelDialogOk->Initialize(pResourceManager); | 330 pLevelDialogOk->Initialize(pResourceManager); |
348 pGameDialogOk->Subscribe(GuiButton::EventClick, &World::OnOk, this); | 348 pGameDialogOk->Subscribe(GuiButton::EventClick, &World::OnOk, this); |
349 */ | 349 */ |
350 | 350 |
351 pGameDialog = new GuiImage(); | 351 pGameDialog = new GuiImage(); |
352 pGameDialog->Initialize(pResourceManager); | 352 pGameDialog->Initialize(pResourceManager); |
353 pGameDialog->SetVisible(false); | 353 pGameDialog->ClearFlag(GuiElementFlag_Visible); |
354 pGameDialog->SetTexture("Data\\Textures\\Dialog0.tga", true); | 354 pGameDialog->SetTexture("Data\\Textures\\Dialog0.tga", true); |
355 pGameDialog->SetPosition(0.5f * (ScreenSizeX - pGameDialog->GetWidth()), 0.5f * (ScreenSizeY - pGameDialog->GetHeight())); | 355 pGameDialog->SetPosition(0.5f * (ScreenSizeX - pGameDialog->GetWidth()), 0.5f * (ScreenSizeY - pGameDialog->GetHeight())); |
356 //pGameDialog->Add(pGameDialogOk); | 356 //pGameDialog->Add(pGameDialogOk); |
357 | 357 |
358 kInterface.Add(pBackground); | 358 kInterface.Add(pBackground); |