Skip to content

Commit

Permalink
Fix for "unused variable" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaroslaw Hartman committed Feb 20, 2024
1 parent 7b97786 commit f752daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/TrainerRoadDetailsMenu.mc
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ function pushTrainerRoadDetailsMenu(name as String, description as String) as Vo
//! This is the Images custom menu, which shows an
//! image and text for each item
class TrainerRoadDetailsMenu extends WatchUi.CustomMenu {
private var _name as String;
// private var _name as String;
private var _icon as BitmapResource;
private var _iconOffset as Number;

//! Constructor
//! @param itemHeight The pixel height of menu items rendered by this menu
//! @param backgroundColor The color for the menu background
public function initialize(name as String, itemHeight as Number, backgroundColor as ColorType) {
_name = name;
// _name = name;
_icon = WatchUi.loadResource($.Rez.Drawables.LauncherIcon) as BitmapResource;
_iconOffset = -1 - _icon.getWidth() / 2;
CustomMenu.initialize(itemHeight, backgroundColor, {:titleItemHeight => 150});
Expand Down

0 comments on commit f752daf

Please sign in to comment.