mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 16:35:14 -06:00
Refactored some code related to inv/sprite
This commit is contained in:
parent
77bfb744bc
commit
b57d5a0031
51 changed files with 686 additions and 625 deletions
|
|
@ -36,7 +36,7 @@ public class TitleScreen {
|
|||
@Pc(20) int height = GameShell.canvasHeight;
|
||||
@Pc(26) int width = height * 956 / 503;
|
||||
titleBg = SpriteLoader.loadSpriteAutoDetect(archive, bgId);
|
||||
titleBg.renderResizedTransparent((GameShell.canvasWidth - width) / 2, 0, width, height);
|
||||
titleBg.renderResized((GameShell.canvasWidth - width) / 2, 0, width, height);
|
||||
logo = SpriteLoader.loadIndexedSpriteAutoDetect(logoId, archive);
|
||||
logo.renderTransparent(GameShell.canvasWidth / 2 - logo.width / 2, 18);
|
||||
loaded = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue