sorted and renamed all drawables
This commit is contained in:
@ -11,8 +11,8 @@ import de.frajul.endlessroll.R;
|
||||
|
||||
public enum ToolUpgradeType {
|
||||
|
||||
NONE(R.string.tool_upgrade_none, "", R.drawable.tools_rampbutton), TIME(R.string.tool_upgrade_time, "s", R.drawable.clock), RADIUS(
|
||||
R.string.tool_upgrade_radius, "%", R.drawable.radius), FORCE(R.string.tool_upgrade_force, "%", R.drawable.magnet_field);
|
||||
NONE(R.string.tool_upgrade_none, "", R.drawable.tools_ramp_button), TIME(R.string.tool_upgrade_time, "s", R.drawable.guis_clock), RADIUS(
|
||||
R.string.tool_upgrade_radius, "%", R.drawable.guis_radius), FORCE(R.string.tool_upgrade_force, "%", R.drawable.guis_magnet_field);
|
||||
|
||||
@StringRes
|
||||
private int name;
|
||||
|
@ -49,7 +49,7 @@ public class ToolInspector implements View.OnClickListener {
|
||||
this.locked = locked;
|
||||
this.title.setText(locked ? R.string.tool_name_unknown : toolType.getName());
|
||||
this.imageView.setImageDrawable(gameActivity.getResources().getDrawable(
|
||||
locked ? R.drawable.tools_lockedbutton : toolType.getButtonDrawable()));
|
||||
locked ? R.drawable.tools_button_locked : toolType.getButtonDrawable()));
|
||||
priceButton.init(R.string.price_button_buy, toolType.getPrice(), R.drawable.currency_star);
|
||||
priceButton.setLayoutVisible(toolType.isBought() || locked ? View.GONE : View.VISIBLE);
|
||||
priceButton.setLayoutEnabled(toolType.getPrice() <= gameActivity.getUser().getStarCount());
|
||||
|
Reference in New Issue
Block a user