Skip to content

Commit

Permalink
Moved themes into separate repositories (#62)
Browse files Browse the repository at this point in the history
* Moving themes outside of Gooey

* Additional cleanup
  • Loading branch information
britzl authored Nov 17, 2020
1 parent 6346e53 commit 84e92d8
Show file tree
Hide file tree
Showing 123 changed files with 390 additions and 11,930 deletions.
110 changes: 0 additions & 110 deletions CHANGELOG.md

This file was deleted.

32 changes: 7 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ https://github.com/britzl/gooey/archive/master.zip

Or point to the ZIP file of a [specific release](https://github.com/britzl/gooey/releases).

# Themes
A few UI themes have been created for Gooey:

* [Dirty Larry](https://github.com/britzl/gooey-dirtylarry)
* [Kenney](https://github.com/britzl/gooey-kenney)
* [RPG](https://github.com/britzl/gooey-rpg)


# Usage
The Gooey system is encapsulated in a single Lua module without any visual components. It makes very little assumptions of the look and feel of the UI components it supports. Instead Gooey focuses on providing stable input and state handling and lets the user decide which states matter and how they should be presented visually.
Expand Down Expand Up @@ -562,32 +569,7 @@ Each Gooey component has a ```consumed``` variable in its state table. Consuming
end


## Gooey Themes
Gooey comes shipped with two themes: Dirty Larry and Kenneyblue. You can use these as they are or make a copy and modify. Each theme consists of a Lua module wrapping Gooey, a couple of GUI templates, a font and an atlas containing the visual representation of the components. Use the themes like this:

local kenneyblue = require "gooey.themes.kenneyblue.kenneyblue"

function on_input(self, action_id, action)
kenneyblue.button("button", action_id, action, function(button)
print("pressed button")
end)
end

![](images/dirtylarry.png)
*Dirty Larry theme*

![](images/kenneyblue.png)
*Kenneyblue theme*


## Example app
See the [example app](example/) for examples of how to use Gooey on its own and how to use the themes.

[Try the HTML5 version of the example app](http://britzl.github.io/Gooey).


# Credits
* Assets for the Dirty Larry theme from [Dirty Larry](https://github.com/andsve/dirtylarry)
* Assets for the Kenneyblue theme from [Kenney](http://www.kenney.nl)
* Assets for the RPG theme from [Kenney](http://www.kenney.nl)
* Font Alagard used in RPG theme by [Hewett Tsoi](https://www.dafont.com/hewett-tsoi.d4888)
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: "kenneyblue"
name: "components"
scale_along_z: 0
embedded_instances {
id: "go"
data: "components {\n"
" id: \"kenneyblue\"\n"
" component: \"/example/kenneyblue.gui\"\n"
" id: \"components\"\n"
" component: \"/example/components.gui\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
Expand Down
Loading

0 comments on commit 84e92d8

Please sign in to comment.