개인 자료란 (JE)

  서버 커뮤니티

Profile muqhc 대표칭호 없음
Profile

커뮤니티 소통 개발하기 API

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

2023.04.09 조회 수 297 추천 수 2



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 //바닥-가운데로 정렬
            
            compo.textDisplay.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/034/509/003/262x150.crop.jpg?20230602015621

애니메이터

[죄송합니다] 케인

겜웅이

2023-06-02

0

/files/thumbnails/893/508/003/262x150.crop.jpg?20230601232313

소식

이제 웹에서 렐름 설정을 편집할 수 있습니다

Dalsu

2023-06-01

0

/files/thumbnails/351/507/003/262x150.crop.jpg?20230531213500

업데이트

마인크래프트 프리뷰 및 베타 1.20.10.20 업데이트

Dalsu

2023-05-31

0

/files/thumbnails/344/507/003/262x150.crop.jpg?20230530231533

소식

마인플렉스 재오픈 공지

Dalsu

2023-05-30

0

/files/thumbnails/332/505/003/262x150.crop.jpg?20230528213756

건축

마인크래프트로 만든 미연시 게임들과 몰?루 아카이브의 생텀타워. (feat. 시네마틱영상)

가스마스크선생

2023-05-28

2