Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
pokepetter committed Jun 16, 2024
1 parent 0d2da9d commit f268953
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion taptapir
Submodule taptapir updated 1 files
+16 −5 taptapir.js
11 changes: 6 additions & 5 deletions taptapir_editor/taptapir_editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,14 @@
# e.color = e.original_color


editor = Entity(parent=camera.ui, color=color.light_gray, z=-2, scale=[.5,.2], roundness=.1)
# i = 0
editor = Entity(parent=camera.ui, color=color.light_gray, z=-2, scale=[.5,.2], roundness=.1, shadow=True)
i = 0
for key, value in [color.black, color.gray, color.white, color.red]:
Button(parent=editor, scale=[.2,.4], color=value, x=i*.11)

grid_layout(l=editor.children, offset=[-.0,-.0])
let b = Button(parent=editor, scale=[.2,.4], color=value, x=i*.2)
# print('-----', value)
# i += 1
# print('ccccccccccccc', editor.children)
grid_layout(editor.children, {'offset':[-.385,-.25]})
# scene.entities.append(Button(scale=.1))

# require: 1g 10d
Expand Down
8 changes: 3 additions & 5 deletions todo/todo_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@
options_button.on_click = def():
options_menu.enabled = True

options_menu = Entity(parent=camera.ui, z=-10, color=color.white, scale=.85, roundness=.025, padding=1, shadow=True, enabled=False, ignore_collision=False)
options_menu.bg = Entity(parent=options_menu, scale=3, color=color.black, alpha=.5, z=1, on_click=def():options_menu.enabled=False)
options_menu.close_button = *Button(parent=options_menu, position=[.525,.575], color=color.red, text='✖', text_color=color.white, shadow=False, scale=.1, on_click=def():options_menu.enabled=False)
options_menu = Entity(parent=camera.ui, z=-10, color=color.white, scale=.85, roundness=.025, padding=1, shadow=True, enabled=False, ignore_collision=False, popup=True)
options_menu.close_button = *Button(parent=options_menu, position=[.525,.575], color=color.red, text='✕', text_color=color.white, shadow=False, scale=.1, on_click=def():options_menu.enabled=False)
options_menu.on_disable = def():
save_system_save('page_names', page_names)

Expand All @@ -173,8 +172,7 @@
tab.text = name_change_field.value

clear_data_button = *Button(text='clear data', parent=options_menu, scale=[.25,.1], text_size=2, position=[.5,-.5], origin=[.5,-.5], text_color=color.gray, color=color.smoke)
are_you_sure_prompt = *Button(parent=camera.ui, scale=[.7,.4], z=-120, text='\nClear all data?', text_color=color.dark_gray, text_origin=[0,.5], roundness=.1, shadow=True, enabled=False)
are_you_sure_prompt.bg = Entity(parent=are_you_sure_prompt, scale=10, color=color.black, alpha=.5, z=1, on_click=def():are_you_sure_prompt.enabled=False)
are_you_sure_prompt = *Button(parent=camera.ui, scale=[.7,.4], z=-120, text='\nClear all data?', text_color=color.dark_gray, text_origin=[0,.5], roundness=.1, shadow=True, popup=True, enabled=False)
are_you_sure_prompt.cancel_button = *Button(parent=are_you_sure_prompt, scale=[.5,.25], z=-1, text='Cancel', text_size=2.5, color=color.smoke, text_color=color.dark_gray, origin=[-.5,-.5], position=[-.45,-.4], on_click=def():are_you_sure_prompt.enabled=False)
are_you_sure_prompt.confirm_button = *Button(parent=are_you_sure_prompt, scale=[.35,.25], z=-1, text='Confirm', text_size=2.5, color=color.azure, text_color=color.smoke, origin=[.5,-.5], position=[.45,-.4], on_click=def():are_you_sure_prompt.enabled=False; save_system_clear())

Expand Down

0 comments on commit f268953

Please sign in to comment.