-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ringo Window Show Variable
72 lines (60 loc) · 1.98 KB
/
Ringo Window Show Variable
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#/==============================================================================\
# Rhyan - Ringo Window Show Variable
#
# -
# Autor: Davi M, como Rhyan.
# Versão: 1.0
# Começo: 17/05/2020
# Termos de uso:
#
# 1... Você pode usar como quiser, mas dando créditos a: "Ringo Rhyan".
# 2... O uso é para NÂO-COMERCIAL, caso queira utilizar, me contate por mensagem
# privada.
# 3... Válido para não-comercial e comercial: Deixe pelo menos um dos links:
#
# 1>https://github.com/Rhyan-crypto/Rhyan-RGSS3-Scripts
# 2>https://pastebin.com/u/Fashy
# 3>https://centrorpg.com/index.php?action=profile;area=forumprofile
#
# Lembrando que você só precisa deixar apenas UM deles.
#\==============================================================================/
module Ringo_Config
Variable = 1 #<- Altere pelo ID da sua variável.
Opacidade = 100 #<- Altere pela sua opacidade (0 - 255).
end
#===========================================================================#
# Ringo | Scene Map | Essa scene vai ser responsável por carregar a window.
#===========================================================================#
class Scene_Map < Scene_Base
include Ringo_Config
alias :ringo_start :start
def start
ringo_start
create_code_window
main_configs
end
def main_configs
@ringo_show_variable.opacity = Opacidade
end
def create_code_window
@ringo_show_variable = Ringo_Show_Variable.new(Variable)
end
end
#===========================================================================#
# Ringo | Ringo_Show_Variable | Essa é a window (janela que mostra a variável).
#===========================================================================#
class Ringo_Show_Variable < Window_Base
def initialize(var)
super(0, 0, 150, 50) #x, y, width, height
refresh
@var = var
end
def update
super
refresh
end
def refresh
contents.clear
draw_text_ex(0, 0, $game_variables[@var.to_i]) #<- Desenhando o valor da variável.
end
end