Skip to content

Commit

Permalink
Add self-destruct
Browse files Browse the repository at this point in the history
  • Loading branch information
hexagonrecursion committed Aug 25, 2024
1 parent aad5918 commit c2b7448
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion colobot-base/src/common/restext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void InitializeRestext()

stringsText[RT_DIALOG_ABORT] = TR("Abort\\Abort the current mission");
stringsText[RT_DIALOG_CONTINUE] = TR("Continue\\Continue the current mission");
stringsText[RT_DIALOG_DELOBJ] = TR("Do you really want to destroy the selected building?");
stringsText[RT_DIALOG_DELOBJ] = TR("Do you really want to destroy the selected bot or building?");
stringsText[RT_DIALOG_DELGAME] = TR("Do you want to delete %s's saved games?");
stringsText[RT_DIALOG_YES] = TR("Yes");
stringsText[RT_DIALOG_NO] = TR("No");
Expand Down
6 changes: 6 additions & 0 deletions colobot-base/src/ui/object_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,12 @@ bool CObjectInterface::CreateInterface(bool bSelect)
type == OBJECT_WORM ||
type == OBJECT_CONTROLLER) // vehicle?
{
pos.x = ox+sx*6.2f;
pos.y = oy+sy*0;
ddim.x = dim.x*0.6f;
ddim.y = dim.y*0.6f;
pw->CreateButton(pos, ddim, 12, EVENT_OBJECT_DELETE);

if (m_main->GetMissionType() != MISSION_RETRO)
{
ddim.x = dim.x*5.1f;
Expand Down

0 comments on commit c2b7448

Please sign in to comment.