- Timestamp:
- Nov 2, 2018, 3:02:21 AM (6 years ago)
- Branches:
- master
- Children:
- 0b84f13
- Parents:
- 1c27783
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/LostHavenRPG.java
r1c27783 rc3b2f42 237 237 this.g = bufferStrategy.getDrawGraphics(); 238 238 this.gcsLogo.draw(this.g, 0, 0); 239 this.g.setColor(Color.green); 239 this.g.setColor(Color.black); 240 this.g.setFont(this.guiFont12); 240 241 this.g.drawString("Loading...", 368, 31); 241 242 this.g.dispose(); … … 244 245 245 246 private void loadGUI(final BufferStrategy bufferStrategy) { 246 this.font14 = new Font("Arial", 0, 14);247 247 this.gcsLogo = new DynamicImage("gui/gcslogo.png"); 248 this.g.setFont(this.font14); 248 this.guiFont12 = new Font("Garamond", 1, 12); 249 this.m = this.g.getFontMetrics(this.guiFont12); 249 250 this.updateLoadingScreen(bufferStrategy); 251 250 252 this.font11 = new Font("Arial", 0, 11); 251 253 this.font12 = new Font("Arial", 0, 12); 254 this.font14 = new Font("Arial", 0, 14); 252 255 this.font24 = new Font("Arial", 0, 24); 253 256 this.fontTT = new Font("Courier New", 0, 11); 254 this.guiFont12 = new Font("Garamond", 1, 12);255 257 this.guiFont14 = new Font("Garamond", 1, 14); 256 this.m = this.g.getFontMetrics(this.guiFont12);257 258 try { 258 259 final Font fontCustom = Utils.loadFont("images/gui/Last_words.ttf"); … … 262 263 this.fontCustom24 = fontCustom.deriveFont(0, 24.0f); 263 264 this.fontCustom30 = fontCustom.deriveFont(0, 30.0f); 264 } 265 catch (Exception e) { 265 } catch (Exception e) { 266 266 e.printStackTrace(); 267 267 }
Note:
See TracChangeset
for help on using the changeset viewer.