当前位置:网站首页>(15)Blender源码分析之闪屏窗口显示菜单功能
(15)Blender源码分析之闪屏窗口显示菜单功能
2022-06-26 03:33:00 【caimouse】
在前面我们可以看到闪屏的图片,可以看到有下面的菜单在图片后面,如下图:
后面这些菜单又是怎么样显示出来的呢,本文就来探索这个方面的问题,由于blender是一套复杂灵活的软件,所以它的菜单系统也是比较复杂的。要想显示一个菜单,需要理解C的代码,也需要理解python的代码,需要两方面的代码相互配合才能显示正确的菜单。如果一开始对这套代码不太熟悉,就会比较麻烦了,很多功能无从谈起。因此,现在就来分析红色框里的菜单,看看这些菜单又是怎么一个过程来显示出来的,当你理解这个过程之后,才可以修改这些菜单的功能,才能定制自己个性化的需求。
先来看一下菜单的布局代码:
const int layout_margin_x = U.dpi_fac * 26;
uiLayout *layout = UI_
边栏推荐
- MySQL advanced Chapter 1 (installing MySQL under Linux) [2]
- USB驱动-debug
- Dynamic segment tree leetcode seven hundred and fifteen
- [paper notes] learning to grasp with primitive shaped object policies
- Nepal graph learning Chapter 3_ Multithreading completes 6000w+ relational data migration
- 【好书集锦】从技术到产品
- [appium stepping pit] io appium. uiautomator2. common. exceptions. InvalidArgumentException: ‘capabilities‘ are mand
- Cliquez sur le bouton action de la liste pour passer à une autre page de menu et activer le menu correspondant
- 2020 summary: industrial software development under Internet thinking
- Kotlin uses viewpager2+fragment+bottomnavigationview to implement the style of the switching module of the bottom menu bar.
猜你喜欢
How to prepare for a moving wedding
ABP framework Practice Series (II) - Introduction to domain layer
Digital twin intelligent water service, breaking through the development dilemma of sponge City
Camera-memory内存泄漏分析(三)
Tupu software is the digital twin of offshore wind power, striving to be the first
用eclipse连mysql数据库出错然后出现图中的话是咋回事呀
Partition, column, list
Uni app, the text implementation expands and retracts the full text
redux-thunk 简单案例,优缺点和思考
Uni app swiper rotation chart (full screen / card)
随机推荐
Nebula Graph学习篇3_多线程完成6000w+关系数据迁移
路由跳转之点击列表的操作按钮,跳转至另一个菜单页面并激活相应的菜单
763. 划分字母区间
[paper notes] learning to grasp with primitive shaped object policies
[paper notes] supersizing self supervision: learning to grasp from 50K tries and 700 robot hours
【LOJ#6718】九个太阳「弱」化版(循环卷积,任意模数NTT)
Is the compass app regular? Is it safe or not
2020 summary: industrial software development under Internet thinking
Classic model – RESNET
You cannot call Glide. get() in registerComponents(), use the provided Glide instance instead
Insect structure and Deconstruction
[appium stepping pit] io appium. uiautomator2. common. exceptions. InvalidArgumentException: ‘capabilities‘ are mand
多媒体元素,音频、视频
面试阿里测开岗失败后,被面试官在朋友圈吐槽了......(心塞)
小米电视的网页和珠宝的网页
进度条
ASP. Net core introduction
Uni app custom navigation bar component
ABP framework Practice Series (III) - domain layer in depth
Is the waiting insurance record a waiting insurance evaluation? What is the relationship between the two?