-
Notifications
You must be signed in to change notification settings - Fork 1
/
Scene.py
75 lines (73 loc) · 1.99 KB
/
Scene.py
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
73
74
75
#coding=utf8
import rpErrorHandler
from Tkinter import *
from Sprite import *
from Common import *
from Voice import *
class Scene():
def __init__(self,
file_id = -1,
speaker = '',
speaking = False,
sprite = '',
voice = VoiceId(),
bgm = -1,
headshot = -1,
mode = None,
special = None,
format = None,
box_color = BOX_COLORS.yellow,
box_type = BOX_TYPES.normal,
ammo = -1,
present = -1,
bgd = [],
cutin = -1,
flash = [],
movie = -1,
img_filter = None,
chapter = -1,
scene = -1,
room = -1,
extra_val = -1,
goto_ch = -1,
goto_scene = -1,
goto_room = -1,
text = '',
text_idx = -1,
text_img = '',
text_clt = False,
):
# File ID
self.file_id = file_id
self.chapter = chapter
# Info about scene
self.scene = scene
self.room = room
# Info about speacking char
self.speaker = speaker
self.speaking = speaking
self.sprite = sprite
self.voice = voice
self.bgm = bgm
self.headshot = headshot
self.mode = mode
self.special = special
self.format = format
# Text box
self.box_color = box_color
self.box_type = box_type
self.text = text
self.text_idx = text_idx
self.text_img = text_img
self.text_clt = text_clt
# Current status
self.ammo = ammo
self.present = present
# Scene graphics
self.bgd = bgd
self.cutin = cutin
self.flash = flash
self.movie = movie
self.img_filter = img_filter
# Any extra values
self.extra_val = extra_val