Comments (5)
Please show minimal code that shows the behavior you raise has the issue
from slab.
Also I would like to add the same result occurs even if I don't have an if statement for begin window and just have it on it's own. Except for one thing. The menu bar now appears even when the window is closed.
from slab.
apologies for the wait!
lvledit.win = {}
lvledit.win.main = {Title = "Level Editor", IsOpen = true, AutoSizeWindow = false, AllowResize = true}
function lvledit:drawMain(dt)
Slab.BeginWindow("lvl_main", lvledit.win.main)
-- Menu Bar
if Slab.BeginMenuBar() then
if Slab.BeginMenu("File") then
if Slab.MenuItem("New") then
print("Not Implemented")
end
if Slab.MenuItem("Open") then
print("Not Implemented")
end
Slab.Separator()
if Slab.MenuItem("Exit") then
print("Not Implemented")
end
end
Slab.EndMenuBar()
end
Slab.Text("TEST!")
Slab.EndWindow()
end
here is a stripped down variant of the window that I found this issue with.
Just put lvledit:drawMain(dt)
inside a standard slab setup alongside this code and it should trigger the issue.
from slab.
NOTE: Though this differs slightly from that that you can see in the recording it does indeed still trigger the issue for me.
from slab.
Sorry for the late response, you need Slab.EndMenu()
.
Slab.BeginWindow("lvl_main", lvledit.win.main)
if Slab.BeginMenuBar() then
if Slab.BeginMenu("File") then
if Slab.MenuItem("New") then
print("Not Implemented")
end
if Slab.MenuItem("Open") then
print("Not Implemented")
end
Slab.Separator()
if Slab.MenuItem("Exit") then
print("Not Implemented")
end
Slab.EndMenu() --THIS
end
Slab.EndMenuBar()
end
Slab.Text("TEST!")
Slab.EndWindow()
from slab.
Related Issues (20)
- Vertical Scrollbar is unclickable HOT 1
- Allow parsing of `Input` strings for passwords HOT 4
- GetMousePosition() gives the same result as GetMousePositionWindow() HOT 6
- [IMPORTANT - NEED FEEDBACK] Major refactor, improvements, and optimization for v1.0.0 HOT 21
- How to use `FileDialog` in `MenuItem`? HOT 2
- Documentation and behavior for some elements unclear? HOT 1
- Add a Label override to Slab.Button's Options table. HOT 2
- Color Picker in Window Demo Expands Horizontally HOT 1
- Windows Are Unaware of the Menu Bar HOT 2
- [v1.0.0] - Listbox error HOT 5
- [v1.0.0] - All buttons text are completely off HOT 5
- Checkbox not rendering in correct position
- [v1.0.0] - File opening dialog completely broken HOT 1
- [v1.0.0] - Slab.IsVoidHovered() not returning true correctly HOT 3
- Looks suggestions HOT 1
- Scaling the UI HOT 2
- exaple wan't start HOT 5
- OpenFileDialog has a weird behavior HOT 1
- Bug with Slab.Scale(). Mouse position is inversely scaled incorrectly. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slab.