Add CMake build and cross-platform cleanup
This commit is contained in:
@@ -20,7 +20,7 @@ void GuiButton::Draw() const {
|
||||
|
||||
}
|
||||
}
|
||||
void GuiButton::Update(float elapsedSec) {
|
||||
void GuiButton::Update(float) {
|
||||
Vector2f mousePos = utils::GetMousePos();
|
||||
Rectf buttonRect = Rectf(m_Position, m_Size);
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ void GuiMeter::Draw() const {
|
||||
m_Animation->Draw(m_Position, Rectf{m_Position, m_DrawSize});
|
||||
// utils::DrawRect(Rectf { m_Position, m_DrawSize});
|
||||
}
|
||||
void GuiMeter::Update(float elapsedSec) {
|
||||
void GuiMeter::Update(float) {
|
||||
const int frame = static_cast<int>(utils::map(m_Value, 0.0f, m_MaxValue, 0, (float)m_Animation->GetFrameCount()));
|
||||
m_Animation->SetFrame(frame);
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ void GuiText::Draw() const {
|
||||
m_Text->Draw(m_Position);
|
||||
}
|
||||
|
||||
void GuiText::Update(float elapsedSec) {
|
||||
void GuiText::Update(float) {
|
||||
}
|
||||
|
||||
void GuiText::ChangeText(const std::string& text) const {
|
||||
|
||||
@@ -29,7 +29,7 @@ void SellSreenRow::Draw() const {
|
||||
// utils::SetColor(Colors::GREEN);
|
||||
// utils::DrawRect(Rectf { m_Pos, m_Size });
|
||||
}
|
||||
void SellSreenRow::Update(float elapsedSecs) {
|
||||
void SellSreenRow::Update(float) {
|
||||
// m_NameText->ChangeText("EXAMPLE");
|
||||
// m_CalculationText->ChangeText(std::to_string(m_Item.m_Quantity));
|
||||
GenerateCalcString();
|
||||
|
||||
Reference in New Issue
Block a user