Skip to content
Snippets Groups Projects
Select Git revision
  • a6c4fd0420b34d35a88e295cb04677051fd26ed8
  • master default
  • v1.2.0
  • v1.1.0
  • v1.0.0
5 results

_de.properties

Blame
  • ComboBoxResolutionCell.java 512 B
    package de.bricked.ui.cells;
    
    import de.bricked.game.settings.GameSize;
    import javafx.scene.control.cell.ComboBoxListCell;
    
    public class ComboBoxResolutionCell extends ComboBoxListCell<GameSize>
    {	
    	@Override
    	public void updateItem(GameSize item, boolean empty)
    	{
    		super.updateItem(item, empty);
    
    		if( ! empty)
    		{	
    			if(item == GameSize.FULL_SCREEN)
    			{
    				setText("Fullscreen");
    			}
    			else
    			{
    				setText(item.getWidth() + " x " + item.getHeight());
    			}			
    		}
    		else
    		{
    			setText(null);
    		}
    	}
    }