Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In formspecs dropdown lists drop down behind other elements #8036

Open
Linuxdirk opened this issue Dec 31, 2018 · 0 comments · May be fixed by #8740

Comments

@Linuxdirk
Copy link

commented Dec 31, 2018

Issue type
  • Bug report
Minetest version
Minetest 0.4.17.1 (Linux)
Using Irrlicht 1.8.4
Build info: VER=0.4.17.1 BUILD_TYPE=Release RUN_IN_PLACE=0 USE_GETTEXT=1 USE_SOUND=1 USE_CURL=1 USE_FREETYPE=1 USE_LUAJIT=1 STATIC_SHAREDIR="/usr/share/minetest"
OS / Hardware

Operating system: Linux 4.19.12-arch1-1-ARCH x86_64
CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz

GPU model: NVIDIA Corporation GP104 [GeForce GTX 1080] (rev a1)
OpenGL version: 4.6.0 NVIDIA 415.2

Summary

When creating formspecs with dropdown lists the drop-down drops down behind other elements as shown here:

2018-12-31-021705_790x510_scrot

According to the forum discussion this seems to be a bug in how formspecs are created (mixed Irrlicht and custom elements).

Steps to reproduce
  1. Install this minimal working example as mod.

    minetest.register_node('test:test', {
        description = 'Test Node',
        tiles = { 'default_wood.png^[colorize:#ffff0055' },
        groups = { oddly_breakable_by_hand = 1 },
        after_place_node = function(pos, placer)
            local meta = minetest.get_meta(pos)
            meta:set_string('formspec', [[
            size[8,5]
            list[current_player;main;0,1;8,4;]
            dropdown[0,0;8;category;Item 1,Item 2,Item 3,Item 4,Item 5;1]
            ]])
        end,
    })
    
  2. Enable the mod and start a world

  3. From creative inventory search Test Node and place it

  4. Rightclick it to open the meta formspec

  5. Use the drop-down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.