- May 1, 2019
- 633
- 2,514
Hi guys!
Need help.
When the dialog starts, the time line gets in the way and I can't remove it.
If anyone can help I would be very grateful
Need help.
When the dialog starts, the time line gets in the way and I can't remove it.
Code:
init:
init python:
class TimeParametrs(object):
def __init__(self, Minutes, Hours, Weekdays, Day):
self.Minutes = Minutes
self.Hours = Hours
self.Weekdays = Weekdays
self.Day = Day
[USER=2111498]property[/USER]
def Output(self):
return self.Weekdays[self.Day] + " " + str(self.Hours).zfill(2) + ":" + str(self.Minutes).zfill(2) #Here is the place where the function returns a string
def AddTime(self, Minutes):
self.Minutes+=Minutes
if self.Minutes>=60:
self.Hours+=1
self.Minutes=0
if self.Hours>=24:
self.Day+=1
self.Hours=0
if self.Day>=7:
self.Day=0
class StatsParametrs():
def __init__(self,bla1, bla2, bla3):
self.Strength = bla1
self.Handsome = bla2
self.Reputation = bla3
[USER=2111498]property[/USER]
def OutputStatsParametrs(self):
return str(self.bla1) + " " + str(self.bla2) + " " + str(self.bla3)
call Variables
$ running = True
while running:
$ time_check()
$ TimeParametrs.AddTime(15)
$ TimeParametrs.Output # Here is a call to this line in a loop (how to remove it during a dialogue in any other block of code?)
$ OutputStatsParametrs = StatsParametrs.OutputStatsParametrs
return
any block:
"asdqw"
"das"
"das"
"asdqw"
"das"
"das"
"asdqw"
"das"
window hide
$ Location = "Location any"
return ("any")