iminurnamez / pyroller

pygame casino
65 stars 29 forks source link

Utils move to framework #29

Closed paulpaterson closed 9 years ago

paulpaterson commented 9 years ago

OK this was intended as a pull just looking at moving the utils classes from bingo into the main components.

However some other changes appear here in the pull. Maybe because I merged with the upstream rather than rebaselining.

Nevertheless the first few changed files (last 6 commits, from "Moved loggable ...") are the key ones that impact the global framework.

Nothing is broken by these changes but they do move some components that were bingo specific into the main components. These are logging, drawable groups, clickables, buttons (sprite based and on/off toggles). The buttons use the event framework so you can use linkEvent to pick up click, mouse enter, mouse leave type events.

paulpaterson commented 9 years ago

I should have mentioned - this is very much an optional pull to see if others would find it useful. There is some overlap with the ImageButton, FunctionButton in the labels.py component.

If this isn't thought to be useful just reject the pull!

iminurnamez commented 9 years ago

It doesn't seem like it will interfere with anything so I don't see any reason not to merge it in.