move location of built-in layouts
parent
9eaa27ce3e
commit
3b5fdfaf61
|
|
@ -225,11 +225,14 @@ Squib Comes with Built-In Layouts
|
||||||
|
|
||||||
Why mess with x-y coordinates when you're first prototyping your game? Just use a built-in layout to get your game to the table as quickly as possible.
|
Why mess with x-y coordinates when you're first prototyping your game? Just use a built-in layout to get your game to the table as quickly as possible.
|
||||||
|
|
||||||
If your layout file is not found in the current directory, Squib will search for its own set of layout files. The latest the development version of these can be found `on GitHub <https://github.com/andymeneely/squib/tree/master/lib/squib/layouts>`_.
|
If your layout file is not found in the current directory, Squib will search for its own set of layout files. The latest the development version of these can be found `on GitHub <https://github.com/andymeneely/squib/tree/master/lib/squib/builtin/layouts>`_.
|
||||||
|
|
||||||
Contributions in this area are particularly welcome!!
|
Contributions in this area are particularly welcome!!
|
||||||
|
|
||||||
The following depictions of the layouts are generated with `this script <https://github.com/andymeneely/squib/tree/master/samples/layouts/builtin_layouts.rb>`_
|
The following depictions of the layouts are generated with this script:
|
||||||
|
|
||||||
|
.. literalinclude:: ../samples/layouts/builtin_layouts.rb
|
||||||
|
:linenos:
|
||||||
|
|
||||||
fantasy.yml
|
fantasy.yml
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
|
|
@ -287,6 +290,17 @@ https://github.com/andymeneely/squib/tree/master/lib/squib/layouts/playing_card.
|
||||||
See Layouts in Action
|
See Layouts in Action
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
`This sample <https://github.com/andymeneely/squib/tree/master/samples/>`_ demonstrates many different ways of using and combining layouts.
|
This sample, `which lives here <https://github.com/andymeneely/squib/tree/master/samples/layouts/layouts.rb>`_, demonstrates many different ways of using and combining layouts.
|
||||||
|
|
||||||
`This sample <https://github.com/andymeneely/squib/tree/master/samples/>`_ demonstrates built-in layouts based on popular games (e.g. ``fantasy.yml`` and ``economy.yml``)
|
.. literalinclude:: ../samples/layouts/layouts.rb
|
||||||
|
:linenos:
|
||||||
|
|
||||||
|
This is ``custom-layout.yml``:
|
||||||
|
|
||||||
|
.. literalinclude:: ../samples/layouts/custom-layout.yml
|
||||||
|
:linenos:
|
||||||
|
|
||||||
|
This is ``custom-layout2.yml``:
|
||||||
|
|
||||||
|
.. literalinclude:: ../samples/layouts/custom-layout2.yml
|
||||||
|
:linenos:
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ module Squib
|
||||||
|
|
||||||
# Determine the file path of the built-in layout file
|
# Determine the file path of the built-in layout file
|
||||||
def builtin(file)
|
def builtin(file)
|
||||||
"#{File.dirname(__FILE__)}/layouts/#{file}"
|
"#{File.dirname(__FILE__)}/builtin/layouts/#{file}"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Process the extends recursively
|
# Process the extends recursively
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue