|
|
@ -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_dmg=GradeItemOption.Get<uint16_t>(i,14); |
|
|
|
it.stat_magDmg=GradeItemOption.Get<uint16_t>(i,15); |
|
|
|
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){ |
|
|
|
void ItemEditor::Update(FiestaOnlineEditor*pge,float fElapsedTime){ |
|
|
|
bool updateRequired=false; |
|
|
|
bool updateRequired=false; |
|
|
|
if(pge->GetKey(UP).bHeld){ |
|
|
|
updateRequired=true; |
|
|
|
pos.y-=32*fElapsedTime; |
|
|
|
manager.Update(pge,GetPos()); |
|
|
|
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; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(updateRequired){ |
|
|
|
if(updateRequired){ |
|
|
|
InternalRefresh(pge); |
|
|
|
InternalRefresh(pge); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void ItemEditor::Refresh(FiestaOnlineEditor*pge){ |
|
|
|
void ItemEditor::Refresh(FiestaOnlineEditor*pge){ |
|
|
|
pge->DrawRect(pos,{16,16},WHITE); |
|
|
|
manager.Draw(pge,vi2d{0,headerHeight}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void ItemEditor::MouseFocus(FiestaOnlineEditor*pge){ |
|
|
|
void ItemEditor::MouseFocus(FiestaOnlineEditor*pge){ |
|
|
|