mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
def pbDrawTextPositions now uses symbols for text alignment and outline, and added a quicker way to draw text with no shadow/outline
This commit is contained in:
@@ -200,8 +200,8 @@ class TriadScene
|
||||
pbSetSystemFont(@sprites["overlay"].bitmap)
|
||||
pbDrawTextPositions(
|
||||
@sprites["overlay"].bitmap,
|
||||
[[@battle.opponentName, 52, 10, 2, Color.new(248, 248, 248), Color.new(96, 96, 96)],
|
||||
[@battle.playerName, Graphics.width - 52, 10, 2, Color.new(248, 248, 248), Color.new(96, 96, 96)]]
|
||||
[[@battle.opponentName, 52, 10, :center, Color.new(248, 248, 248), Color.new(96, 96, 96)],
|
||||
[@battle.playerName, Graphics.width - 52, 10, :center, Color.new(248, 248, 248), Color.new(96, 96, 96)]]
|
||||
)
|
||||
@sprites["score"] = Sprite.new(@viewport)
|
||||
@sprites["score"].bitmap = BitmapWrapper.new(Graphics.width, Graphics.height)
|
||||
@@ -578,7 +578,7 @@ class TriadScene
|
||||
end
|
||||
pbDrawTextPositions(
|
||||
bitmap,
|
||||
[[_INTL("{1}-{2}", oppscore, playerscore), Graphics.width / 2, 10, 2, Color.new(248, 248, 248), Color.new(96, 96, 96)]]
|
||||
[[_INTL("{1}-{2}", oppscore, playerscore), Graphics.width / 2, 10, :center, Color.new(248, 248, 248), Color.new(96, 96, 96)]]
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user