Mercurial > LightClone
view LightClone/Source/CodePanel.cpp @ 18:33cb6979ac51
More work on GUI system
author | koryspansel |
---|---|
date | Wed, 14 Sep 2011 17:24:49 -0700 |
parents | |
children | 51718795f019 |
line wrap: on
line source
/* * CodePanel */ #include "CodePanel.h" #include "GuiImage.h" /* * CodePanel */ CodePanel::CodePanel() { } /* * Initialize */ ErrorCode CodePanel::Initialize(ResourceManager* pResourceManager) { ErrorCode eCode = GuiContainer::Initialize(pResourceManager); if(eCode == Error_Success) { for(uint32 i = 0; i < 4; ++i) { GuiImage* pImage = new GuiImage(); pImage->Initialize(pResourceManager); pImage->SetTexture("Data\\Textures\\Slot.tga"); pImage->SetDimensions(48.0f, 48.0f); pImage->SetPosition(48.0f * i, 0.0f); Add(pImage); } } return eCode; } /* * Update */ void CodePanel::Update(float fElapsed) { }