개인 자료란 (JE)

  서버 커뮤니티

Profile muqhc 대표칭호 없음
Profile

커뮤니티 소통 개발하기 API

Gui 프레임워크 만듦. (feat. 블럭디스플레이)

2023.04.09 조회 수 497 추천 수 3



SkyPanel( //최상위 패널
    SkyPaddingBoxLayout() /*여백레이아웃*/
).skyguiBuild(this) {
    compo.localPoint2 = Point(2.7,0.7) //패널 크기 크기 설정
    
    board(Material.BIRCH_PLANKS.createBlockData()) //블러디스플레이 평면
    aligningBox { //정렬 레이아웃
        label(Component.text("hello world!").color { 0x603B2A }) { //글자 생성
            option.alignment = Alignment.BottomCenter //바닥-가운데로 정렬
            
            entity { backgroundColor = Color.fromARGB(0) }
            compo.scale = Point(2.2,2.3) //글자 확대
        }
    }
    //버튼 생성
    button(onClicked = { event ->
        event.player.sendMessage("hello world") //클릭시 "hello world" 출력
    })
}

Github repository: https://github.com/muqhc/skyguifx




Warning
댓글이 없습니다.

새로운 댓글을 등록해 주세요!

뉴스 및 창작물
/files/thumbnails/576/775/003/262x150.crop.jpg?20240426232553

아티클

이달의 블록: 단단한 진흙

학교가기싫다

2024-04-26

0

/files/thumbnails/115/774/003/262x150.crop.jpg?20240428135129

업데이트

마인크래프트 1.20.5 정식 업데이트

학교가기싫다

2024-04-24

0

/files/thumbnails/762/770/003/262x150.crop.jpg?20240418073724

레드스톤

T.B.H (고민중독) | 노트블럭 버전 | NoteBlock Cover [한국어 영어 중국어 가사 추가]

노트블럭전문가

2024-04-18

0

/files/thumbnails/218/767/003/262x150.crop.jpg?20240412130213

레드스톤

우리의 꿈 - 원피스 오프닝

노트블럭전문가

2024-04-12

0

/files/thumbnails/505/766/003/262x150.crop.jpg?20240411122306

레드스톤

기동전사 건담 수성의 마녀 | 노트블럭 커버 1

노트블럭전문가

2024-04-11

1