Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.15.2] Scrolling Widget
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 3
Spyeedy

[1.15.2] Scrolling Widget

By Spyeedy, April 11, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Spyeedy    1

Spyeedy

Spyeedy    1

  • Creeper Killer
  • Spyeedy
  • Forge Modder
  • 1
  • 131 posts
Posted April 11, 2020

Looking at Minecraft's widgets for scrolling list, I've found ExtendedList which extends AbstractList. The latter of which handles all the logic for scrolling, etc.

I looked into AbstractList and discovered that render renders the dirt background as well, which I don't want. I only want the ability to scroll, scroll bar and hiding other content that is out-of-view.

With this, will I have to make my own widget for scrolling list? If not, then what other alternatives are there provided by Forge or Minecraft that I've not found?

  • Quote

width=620 height=260http://www.startrek.com/uploads/assets/articles/61c89a9d73c284bda486afaeaf01cdb27180359b.jpg[/img]

Till next time. Thank you for delivering funny scenes to Star Trek as Chekov :) . Will always remember you

Share this post


Link to post
Share on other sites

Majd123mc    0

Majd123mc

Majd123mc    0

  • Tree Puncher
  • Majd123mc
  • Members
  • 0
  • 6 posts
Posted January 9

I already answered it in another post.

In your ExtendedList constructor, call the correct method here:
(link)

Quote

There is a method that allows you to get rid of it:
func_244606_c(false)


func_244606_c(false) // Disables dirt outline
func_244605_b(false) // Disables black background

Note that false disables them, whilst true enables them.

 

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 3
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • metword
      [1.16.4] Config file will not update.

      By metword · Posted 8 minutes ago

      Sorry, after reading the Minecraft Forge code I am still confused at how to link these two...
    • ChampionAsh5357
      [1.15] replacing chunks

      By ChampionAsh5357 · Posted 14 minutes ago

      Something that cannot be mentioned on the forums as coremodding isn't supported here.
    • AurenX
      [1.16.4] Generation Help

      By AurenX · Posted 30 minutes ago

      Started to update my mod to 1.16.4 and i hit a roadblock. I started my mod in 1.12 and lost my computer so my work halted, But what i had working was overriding the nether generation and putting overworld generation on top essentially replacing the bedrock layer with layers that would have hills, lava lakes, lava rivers, trees, etc...; added biomes so there would some variation. At that time i had to create a world provider and chunk generator and replace the nether world provider. Obviously this has changed to the new json format What i have working is the dimension json and the dimension type json (tested with a new dimension and then overriding the default nether), can add biomes to it. My question is with this new json system it appears the chunk generator is called from the json nether being (multi_noise). Am i going down the wrong path here or what are the proper steps. What is recommended here?      
    • gibbyj
      Help using Minecraft Forge on Manjaro Linux

      By gibbyj · Posted 45 minutes ago

      For the record, we made decent progress.  Learned how to activate logging and read the log file in .minecraft folder.  Found that I had mis-configured execution options (heap 64M when 32M was the max allowable).  Fixed that and latest versions of Forge started working.  May be able to get the older ones working too, by using an Oracle 1.8 jvm.   But my son is having fun with forge and some recent mods.
    • JeffMan
      [1.15] replacing chunks

      By JeffMan · Posted 56 minutes ago

      What library is it using?
  • Topics

    • metword
      11
      [1.16.4] Config file will not update.

      By metword
      Started Wednesday at 04:20 PM

    • JeffMan
      3
      [1.15] replacing chunks

      By JeffMan
      Started 6 hours ago

    • AurenX
      0
      [1.16.4] Generation Help

      By AurenX
      Started 30 minutes ago

    • gibbyj
      3
      Help using Minecraft Forge on Manjaro Linux

      By gibbyj
      Started 4 hours ago

    • Linky132
      1
      [1.16.5 ] Dust Block Texture Glitch

      By Linky132
      Started 5 hours ago

  • Who's Online (See full list)

    • metword
    • litehed
    • JeffMan
    • chuckdie5el
    • thorstenschwager
    • ChampionAsh5357
    • AurenX
    • Draco18s
    • Terence O'Meally
    • sarkozi
    • Asw3atyNerd
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.15.2] Scrolling Widget
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community