So what I want :
(please ignore the bad grammar LOL)
So I want a kind of diary where you can change those symptoms every end of the month.
What i have so far:
The variables:
Code: Select all
$ Symptoms = "Not selected"
$ BodyPain = "Not selected"
$ Hunger0 = "Not selected"
$ Hygiene0 = "Not selected"
$ Humor0 = "Not selected"
$ Energy0 = "Not selected"
$ Sleep0 = "Not selected"
Code: Select all
screen journal:
add "journal.png"
tag menu
modal True
frame:
style_group "diary"
vbox:
#----------------------------------------------------------
label ("Date: %s"%calendar.string)
label "Body Pain:"
label"[BodyPain]"
hbox:
imagebutton auto "body/none_%s.png" action SetVariable("BodyPain", "None"), SetVariable("Painlevel", "None")
imagebutton auto "body/body1_%s.png" action SetVariable("BodyPain", "head")
imagebutton auto "body/body2_%s.png" action SetVariable("BodyPain", "arm")
imagebutton auto "body/body3_%s.png" action SetVariable("BodyPain", "organs")
imagebutton auto "body/body4_%s.png" action SetVariable("BodyPain", "legs")
label "Pain Level:"
label"[Painlevel]"
hbox:
if BodyPain == "None":
imagebutton auto "body/pain0_%s.png" action NullAction()
else:
imagebutton auto "body/pain1_%s.png" action SetVariable("Painlevel", "Moderate Pain")
imagebutton auto "body/pain2_%s.png" action SetVariable("Painlevel", "Severe Pain")
imagebutton auto "body/pain3_%s.png" action SetVariable("Painlevel", "Very Severe Pain")
imagebutton auto "body/pain4_%s.png" action SetVariable("Painlevel", "Worst Possible Pain")
#----------------------------------------------------------
label "Symptoms:"
label"[Symptoms]"
hbox:
imagebutton auto "body/anxiety_%s.png" action SetVariable("Symptoms", "Anxiety")
imagebutton auto "body/palpitation_%s.png" action SetVariable("Symptoms", "Palpitations")
imagebutton auto "body/ocd_%s.png" action SetVariable("Symptoms", "OCD")
imagebutton auto "body/irritability_%s.png" action SetVariable("Symptoms", "Irritability")
imagebutton auto "body/memory_%s.png" action SetVariable("Symptoms", "Memory Loss")
frame:
style_group "diary"
#xpos 0.05
pos (0.51, 0.05)
vbox:
label "Hunger Level:"
#label"[Hunger]"
if Hunger == "1":
label "Not eating"
elif Hunger =="2":
label "Eating little"
elif Hunger == "3":
label "Eating healthy"
elif Hunger == "4":
label "Eating too much"
else:
label "Not selected"
hbox:
imagebutton auto "journal/hunger01_%s.png" action SetVariable("Hunger", "1")
imagebutton auto "journal/hunger02_%s.png" action SetVariable("Hunger", "2")
imagebutton auto "journal/hunger03_%s.png" action SetVariable("Hunger", "3")
imagebutton auto "journal/hunger04_%s.png" action SetVariable("Hunger", "4")
label "Hygiene Level:"
#label"[Hygiene]"
if Hygiene == "1":
label "Not brushing hair "
elif Hygiene =="2":
label "Not brushing tooth"
elif Hygiene == "3":
label "Using same clothes for days"
elif Hygiene == "4":
label "Not showering"
else:
label "Not selected"
hbox:
imagebutton auto "journal/hygiene01_%s.png" action SetVariable("Hygiene", "1")
imagebutton auto "journal/hygiene02_%s.png" action SetVariable("Hygiene", "2")
imagebutton auto "journal/hygiene03_%s.png" action SetVariable("Hygiene", "3")
imagebutton auto "journal/hygiene04_%s.png" action SetVariable("Hygiene", "4")
label "Humor Level:"
#label"[Humor]"
if Humor == "1":
label "Suicide Thoughts"
elif Humor =="2":
label "Neutral"
elif Humor == "3":
label "Excited"
elif Humor == "4":
label "Confusion"
else:
label "Not selected"
hbox:
imagebutton auto "journal/humor01_%s.png" action SetVariable("Humor", "1")
imagebutton auto "journal/humor02_%s.png" action SetVariable("Humor", "2")
imagebutton auto "journal/humor03_%s.png" action SetVariable("Humor", "3")
imagebutton auto "journal/humor04_%s.png" action SetVariable("Humor", "4")
imagebutton auto "journal/humor05_%s.png" action SetVariable("Humor", "5")
label "Energy Level:"
#label"[Energy]"
if Energy == "1":
label "No Energy"
elif Energy =="2":
label "Low Energy"
elif Energy == "3":
label "Normal Energy"
elif Energy == "4":
label "High Energy"
else:
label "Not selected"
hbox:
imagebutton auto "journal/energy01_%s.png" action SetVariable("Energy", "1")
imagebutton auto "journal/energy02_%s.png" action SetVariable("Energy", "2")
imagebutton auto "journal/energy03_%s.png" action SetVariable("Energy", "3")
imagebutton auto "journal/energy04_%s.png" action SetVariable("Energy", "4")
label "Sleep Level:"
label"[Sleep]"
if Sleep == "1":
label "Not sleeping for days"
elif Sleep =="2":
label "Trouble to sleep at night"
elif Sleep == "3":
label "Sleeping healthy"
elif Sleep == "4":
label "Oversleeping"
else:
label "Not selected"
hbox:
imagebutton auto "journal/sleep01_%s.png" action SetVariable("Sleep", "1")
imagebutton auto "journal/sleep02_%s.png" action SetVariable("Sleep", "2")
imagebutton auto "journal/sleep03_%s.png" action SetVariable("Sleep", "3")
imagebutton auto "journal/sleep04_%s.png" action SetVariable("Sleep", "4")
#textbutton "Yes" xalign 0.33 yalign 0.5 action NullAction()
#textbutton "No" xalign 0.66 yalign 0.5 action If ( (diary1 == True), true = NullAction(), false = NullAction() )
textbutton "JAN" xalign 0.01 yalign 0.045 action NullAction()
textbutton "FEB" xalign 0.01 yalign 0.10 action NullAction()
textbutton "MAR" xalign 0.01 yalign 0.18 action NullAction()
textbutton "APR" xalign 0.96 yalign 0.26 action NullAction()
textbutton "MAY" xalign 0.96 yalign 0.34 action NullAction()
textbutton "JUN" xalign 0.96 yalign 0.42 action NullAction()
textbutton "JUL" xalign 0.96 yalign 0.50 action NullAction()
textbutton "AUG" xalign 0.96 yalign 0.58 action NullAction()
textbutton "SEP" xalign 0.96 yalign 0.66 action NullAction()
textbutton "OCT" xalign 0.96 yalign 0.74 action NullAction()
textbutton "NOV" xalign 0.96 yalign 0.82 action NullAction()
textbutton "DEC" xalign 0.96 yalign 0.9 action NullAction()
#textbutton "Save" xalign 0.1 yalign 0.85 action NullAction()
if Symptoms == "Not selected" or BodyPain == "Not selected" or Painlevel == "Not selected" :
text "Please"
else:
textbutton "Save" xalign 0.1 yalign 0.85 action [Hide("menu")]
- Arrays(i have been reading nonstoping about it, but seems that my brain is not in the mood to learn by itself)
- changing the SetVariable to SetField (can't figure how to make it work booo)
- Pain & Body options must be linked to each other, so if I select the "None" from body part it changes the display to "None" in pain selector.
- I only need to select one "option" of each topic
- Store those variable EACH month, so I can have a "real diary" to look for (see the months buttons? that's the objective)
- preferably less code
- Update the bad GUI . Cause i'm lazy but i can do it XD
So any good soul can help me on this quest?