Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Noordfrees committed Sep 23, 2021
1 parent fb9f07e commit 77201f2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
7 changes: 3 additions & 4 deletions docs/manual.html
Expand Up @@ -714,14 +714,13 @@ <h1>Game Manual</h1>
<td><emp>9</emp></td>
<td>Open the finances window.</td>
</tr>
<tr>
<td><emp>U</emp></td>
<td>Toggle underground view mode.</td>
</tr>
<tr>
<td><emp>M</emp></td>
<td>Open the minimap.</td>
</tr>
<tr>
<td><emp>U</emp></td>
<td>Toggle underground view mode.</td>
</tr>
</table> </p> <p>
In the main menu, the following shortcuts are available:
Expand Down
8 changes: 4 additions & 4 deletions src/minimap.cpp
Expand Up @@ -5,7 +5,7 @@
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with FreeRCT. If not, see <http://www.gnu.org/licenses/>.
*/

/** @file minimap.cpp %Park overview minimap Gui. */
/** @file minimap.cpp Park overview %Minimap Gui. */

#include "stdafx.h"
#include "map.h"
Expand Down Expand Up @@ -43,9 +43,9 @@ static const int MAX_ZOOM = 16; ///< Maximum size of a voxel in pixels on the m
* @ingroup gui_group
*/
enum MinimapWidgets {
MM_MAIN, ///< Main view
MM_ZOOM_IN, ///< Zoom in button.
MM_ZOOM_OUT, ///< Zoom out button.
MM_MAIN, ///< Main minimap view.
MM_ZOOM_IN, ///< Zoom in button.
MM_ZOOM_OUT, ///< Zoom out button.
MM_SCROLL_HORZ, ///< Horizontal scrollbar.
MM_SCROLL_VERT, ///< Vertical scrollbar.
};
Expand Down
2 changes: 1 addition & 1 deletion src/palette.cpp
Expand Up @@ -244,7 +244,7 @@ ColourRange Recolouring::GetReplacementRange(ColourRange src) const

/** 8 bpp colours mapped to 32 bpp. */
const uint32 _palette[256] = {
MakeRGBA( 0, 0, 0, OPAQUE), // 0 COL_BACKGROUND (background behind world display)
MakeRGBA( 0, 0, 0, OPAQUE), // 0 COL_BACKGROUND (background behind world display), also used for black text.
MakeRGBA(255, 255, 255, OPAQUE), // 1 COL_HIGHLIGHT (full white to highlight window edge)
MakeRGBA(255, 255, 255, OPACITY_SEMI_TRANSPARENT), // 2 COL_SEMI_TRANSPARENT (semi-transparent white buy-ride colour)
MakeRGBA(220, 200, 100, OPAQUE), // 3 Background for tooltips.
Expand Down
12 changes: 6 additions & 6 deletions src/toolbar_gui.cpp
Expand Up @@ -76,8 +76,8 @@ enum DropdownMain {
* @ingroup gui_group
*/
enum DropdownView {
DDV_UNDERGROUND, ///< Toggle underground view.
DDV_MINIMAP, ///< Open the minimap.
DDV_UNDERGROUND, ///< Toggle underground view.
};

/**
Expand Down Expand Up @@ -162,11 +162,11 @@ void ToolbarWindow::OnClick(WidgetNumber number, const Point16 &pos)
case TB_DROPDOWN_VIEW: {
DropdownList itemlist;
/* Keep the order consistent with the DropdownView ordering! */
/* DDV_MINIMAP */
itemlist.push_back(DropdownItem(GUI_TOOLBAR_GUI_DROPDOWN_VIEW_MINIMAP));
/* DDV_UNDERGROUND */
_str_params.SetStrID(1, GUI_TOOLBAR_GUI_DROPDOWN_VIEW_UNDERGROUND);
itemlist.push_back(DropdownItem(_window_manager.GetViewport()->underground_mode ? GUI_DROPDOWN_CHECKED : GUI_DROPDOWN_UNCHECKED));
/* DDV_MINIMAP */
itemlist.push_back(DropdownItem(GUI_TOOLBAR_GUI_DROPDOWN_VIEW_MINIMAP));

this->ShowDropdownMenu(number, itemlist, -1);
break;
Expand Down Expand Up @@ -241,12 +241,12 @@ void ToolbarWindow::OnChange(ChangeCode code, uint32 parameter)
break;
case TB_DROPDOWN_VIEW:
switch (entry) {
case DDV_UNDERGROUND:
_window_manager.GetViewport()->ToggleUndergroundMode();
break;
case DDV_MINIMAP:
ShowMinimap();
break;
case DDV_UNDERGROUND:
_window_manager.GetViewport()->ToggleUndergroundMode();
break;
default: NOT_REACHED();
}
break;
Expand Down

0 comments on commit 77201f2

Please sign in to comment.