|
|
|
@ -120,33 +120,22 @@ void ItemEditor::Load(std::string basePath,std::string clientPath,std::string im |
|
|
|
|
it.stat_dmg=GradeItemOption.Get<uint16_t>(i,14); |
|
|
|
|
it.stat_magDmg=GradeItemOption.Get<uint16_t>(i,15); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//QuickGUI is magic and handles freeing memory for us! Don't need to!
|
|
|
|
|
searchBox=new QuickGUI::TextBox(manager,"",vf2d{8,16},vf2d{128,26},vf2d{1,2}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void ItemEditor::Update(FiestaOnlineEditor*pge,float fElapsedTime){ |
|
|
|
|
bool updateRequired=false; |
|
|
|
|
if(pge->GetKey(UP).bHeld){ |
|
|
|
|
pos.y-=32*fElapsedTime; |
|
|
|
|
updateRequired=true; |
|
|
|
|
} |
|
|
|
|
if(pge->GetKey(DOWN).bHeld){ |
|
|
|
|
pos.y+=32*fElapsedTime; |
|
|
|
|
updateRequired=true; |
|
|
|
|
} |
|
|
|
|
if(pge->GetKey(RIGHT).bHeld){ |
|
|
|
|
pos.x+=32*fElapsedTime; |
|
|
|
|
updateRequired=true; |
|
|
|
|
} |
|
|
|
|
if(pge->GetKey(LEFT).bHeld){ |
|
|
|
|
pos.x-=32*fElapsedTime; |
|
|
|
|
updateRequired=true; |
|
|
|
|
} |
|
|
|
|
manager.Update(pge,GetPos()); |
|
|
|
|
if(updateRequired){ |
|
|
|
|
InternalRefresh(pge); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void ItemEditor::Refresh(FiestaOnlineEditor*pge){ |
|
|
|
|
pge->DrawRect(pos,{16,16},WHITE); |
|
|
|
|
manager.Draw(pge,vi2d{0,headerHeight}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void ItemEditor::MouseFocus(FiestaOnlineEditor*pge){ |
|
|
|
|