Slices are a major part of the OHRRPGCE engine, with a lot of different features to learn. So they have their own list of Frequently Asked Questions.
- 1 General Questions
- 2 Sizing and positioning
- 3 Container Slices
- 4 Sprite Slices
- 5 Rect Slices
- 6 Grid Slices
- 7 Ellipse Slices
- 8 Map Slices
- 9 Special Slices
- 10 Select Slices
- 11 Panel Slices
- 12 Scroll Slices
What's a slice?
See What are slices?
How are the built-in slices arranged?
For a list of the built-in slices, and also everything that's not a slice but is drawn on top of them, see Layers.
What isn't a slice?
Most of the stuff you see on-screen are drawn as slices, and can therefore be manipulated with scripts. But user-defined menus (in the Edit Menus) editor, built-in menus like Status the "pick hero" menu and inns, 'plotstrings' (i.e. use of the showstring and showstringat commands, and also showvalue), map names, and debug overlays like the FPS counter, are not drawn with slices.
Battles aren't currently slice-based either, but you can't use scripts there anyway.
Can I use slices without scripting?
Currently, unfortunately, no.
Sizing and positioning
I want a slice to expand to cover/fit its children
There's currently no built-in way to do this. You could write a script to recalculate the size of a slice
What if I want a panel to have more than two children?
You'll have to use multiple panel slices, daisy-chained together, so each panel slice has two children and is a child of another one, except for the top-most.
Is there a way to check which slice is being currently displayed in a scroll slice?
Note that Scroll slices don't have a concept of a current or currently displayed slice.