Skip to content

Commit

Permalink
/ ‘README.md’
Browse files Browse the repository at this point in the history
/ ‘game/Event Editor/EE_auto_res.rpy’
/ ‘game/Event Editor/EE_main.rpy’
/ ‘game/Event Editor/base_speakers.rpy’
+ ‘game/Event Editor/test_event.rpy’
/ ‘game/events/start.rpy’
+ ‘game/images/bgs/washington.jpg’
+ ‘game/images/bgs/whitehouse.jpg’
+ ‘game/images/characters/eileen/concerned.png’
+ ‘game/images/characters/eileen/happy.png’
+ ‘game/images/characters/eileen/vhappy.png’
+ ‘game/images/events/concert/1.jpg’
+ ‘game/images/events/concert/2.jpg’
+ ‘game/images/events/concert/3.jpg’
/ ‘game/main_menu.rpy’
+ ‘game/pystuff.py’
  • Loading branch information
Jeremi360 committed Jul 18, 2016
1 parent 3b25d13 commit 278cf41
Show file tree
Hide file tree
Showing 16 changed files with 74 additions and 17 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

Ren'Py Event Editor forked from this: [Ren'Py Event Editor forum topic][http://lemmasoft.renai.us/forums/viewtopic.php?f=51&t=24108#p374045]

#Now it:
## Features:
- You can test your events from menu
- All generated events have *EEout_* prefix

- Genterate buttons for all spekers added to speakers list:
```
$ speakers.append(mycharacter)
Expand All @@ -14,6 +17,9 @@ Ren'Py Event Editor forked from this: [Ren'Py Event Editor forum topic][http://l
addEVs('my_custom_ev', 'my_ev_prefix')
addChs('my_custom_ch')
```
## Changes:
- Add imgs from Ren'Py Tutorial
- Remove buggy basic speakers
- Remove old comments
- Comments make in EE are in next line
- Fix indentation or speakers lines
Expand Down
6 changes: 3 additions & 3 deletions game/Event Editor/EE_auto_res.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
## And add every character to speakers list:
## $ speakers.append(mycharacter)
## To add custom image folder write in init -30 python:
## addBGs('my_custom_bgs', 'my_bg_prefix') #you don't have to write prefix
## addEVs('my_custom_ev', 'my_ev_prefix')
## addChs('my_custom_ch')
## addBGs('my_custom_bgs_dir', 'my_bg_prefix') #you don't have to write prefix
## addEVs('my_custom_evs_dir', 'my_ev_prefix')
## addChs('my_custom_chs_dir')

screen speaker_selection:
zorder 1
Expand Down
14 changes: 6 additions & 8 deletions game/Event Editor/EE_main.rpy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#######VERSION: 2.1
#######VERSION: 2.4
#
#DON'T TOUCH:
#Code needed to capture the input text everytime the page changes.
Expand Down Expand Up @@ -131,25 +131,23 @@ screen comments_screen:


label EE_start:
"This is an Event Editor, have fun!"
devloper "This is an Event Editor, have fun!"

call screen new_tutorial_menu

return



#
#
#When you start to write a new event:
#

label new_project:
$ project_name=renpy.input("Write a name for the event","test")
if project_name=="":
"You must write a name for the event"
$ project_name = "EEout_" + renpy.input("Write a name for the event","test")
if project_name == "EEout_":
devloper "You must write a name for the event"
jump new_project
elif project_kind=="map":
elif project_kind == "map":
jump EE_map
else:
$ minievent_list[project_name]=minievent(project_name,project_name,False)
Expand Down
3 changes: 1 addition & 2 deletions game/Event Editor/base_speakers.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ init -90 python:
speakers = []

base_speakers = {"boy":"#729fcf", "girl":"#e65fc8", "men":"#3465a4",
"women":"#ad7fa8", "old_men":"#555753",
"old_women":"#d3d7cf", "devloper":"#cc0000", "debug":"#ef2920"}
"women":"#ad7fa8", "devloper":"#cc0000", "debug":"#ef2920"}

for sp in base_speakers.items():
var_name = sp[0]
Expand Down
23 changes: 23 additions & 0 deletions game/Event Editor/test_event.rpy
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
label EE_test:
scene bg start code

devloper "Here you can test yours events.\n
If you don't see your event on list just restart game."

$ EE__label_list = renpy.get_all_labels()

label EE_watch_event_list_repeat:
call screen EE_label_list
call expression _return
jump EE_test

return

screen EE_label_list:
vbox:
xalign 0.5
yalign 0.5
box_wrap True
for ii in EE__label_list:
if "EEout_" in ii:
textbutton _(ii) action Return(ii) xminimum 200
2 changes: 1 addition & 1 deletion game/events/start.rpy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
label start:
label EEout_start:
scene bg start code
devloper "Hi! Welcome in Ren'Py Event Editor."
scene bg start imgs
Expand Down
Binary file added game/images/bgs/washington.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/bgs/whitehouse.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/characters/eileen/concerned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/characters/eileen/happy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/characters/eileen/vhappy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/events/concert/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/events/concert/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/events/concert/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions game/main_menu.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ screen main_menu():

has vbox

textbutton _("New Game") action Start()
textbutton _("New Game") action Start("EEout_start")
textbutton _("Add New Event") action Start("EE_start")
textbutton _("Test Event") action Start("EE_test")
textbutton _("Load Game") action ShowMenu("load")
textbutton _("Preferences") action ShowMenu("preferences")
textbutton _("Help") action Help()
Expand All @@ -33,4 +34,3 @@ init -2:
# Make all the main menu buttons be the same size.
style mm_button:
size_group "mm"

31 changes: 31 additions & 0 deletions game/pystuff.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
def addImgs(src, prefix, li):
for file in renpy.list_files():
if file.startswith(src):
if file.endswith(tuple(exts)):
name = file.replace(src, prefix)

for space in spaces:
name = name.replace(space, ' ')

for ext in exts:
name = name.replace(ext,'')

renpy.image(name, Image(file))
li.append(name)

def addBGs(src, prefix = 'bg'):
addImgs(src, prefix, bgs)

def addEVs(src, prefix = 'event'):
addImgs(src, prefix, ev_bgs)

def addChs(src, prefix = ''):
addImgs(src, prefix, characters)

try:
from tkinter import Tk
from tkinter.filedialog import askdirectory as ask

except ImportError:
from Tkinter import Tk
from tkFileDialog import askdirectory as ask

0 comments on commit 278cf41

Please sign in to comment.