Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Obs Studio
提交
b8966802
O
Obs Studio
项目概览
小白菜888
/
Obs Studio
通知
4
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Obs Studio
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b8966802
编写于
3月 18, 2018
作者:
S
Shaolin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
UI: Add option to toggle multiview draw safe area
上级
03de558a
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
37 addition
and
7 deletion
+37
-7
UI/data/locale/en-US.ini
UI/data/locale/en-US.ini
+1
-0
UI/forms/OBSBasicSettings.ui
UI/forms/OBSBasicSettings.ui
+11
-1
UI/obs-app.cpp
UI/obs-app.cpp
+3
-0
UI/window-basic-settings.cpp
UI/window-basic-settings.cpp
+10
-0
UI/window-projector.cpp
UI/window-projector.cpp
+12
-6
未找到文件。
UI/data/locale/en-US.ini
浏览文件 @
b8966802
...
...
@@ -574,6 +574,7 @@ Basic.Settings.General.StudioPortraitLayout="Enable portrait/vertical layout"
Basic.Settings.General.Multiview
=
"Multiview"
Basic.Settings.General.Multiview.MouseSwitch
=
"Click to switch between scenes"
Basic.Settings.General.Multiview.DrawSourceNames
=
"Show scene names"
Basic.Settings.General.Multiview.DrawSafeAreas
=
"Draw safe areas (EBU R 95)"
Basic.Settings.General.MultiviewLayout
=
"Multiview Layout"
Basic.Settings.General.MultiviewLayout.Horizontal.Top
=
"Horizontal, Top (8 Scenes)"
Basic.Settings.General.MultiviewLayout.Horizontal.Bottom
=
"Horizontal, Bottom (8 Scenes)"
...
...
UI/forms/OBSBasicSettings.ui
浏览文件 @
b8966802
...
...
@@ -637,9 +637,19 @@
</widget>
</item>
<item
row=
"2"
column=
"1"
>
<widget
class=
"QCheckBox"
name=
"multiviewDrawAreas"
>
<property
name=
"text"
>
<string>
Basic.Settings.General.Multiview.DrawSafeAreas
</string>
</property>
<property
name=
"checked"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"3"
column=
"1"
>
<widget
class=
"QComboBox"
name=
"multiviewLayout"
/>
</item>
<item
row=
"
2
"
column=
"0"
>
<item
row=
"
3
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_64"
>
<property
name=
"text"
>
<string>
Basic.Settings.General.MultiviewLayout
</string>
...
...
UI/obs-app.cpp
浏览文件 @
b8966802
...
...
@@ -427,6 +427,9 @@ bool OBSApp::InitGlobalConfigDefaults()
config_set_default_bool
(
globalConfig
,
"BasicWindow"
,
"MultiviewDrawNames"
,
true
);
config_set_default_bool
(
globalConfig
,
"BasicWindow"
,
"MultiviewDrawAreas"
,
true
);
#ifdef _WIN32
config_set_default_bool
(
globalConfig
,
"Audio"
,
"DisableAudioDucking"
,
true
);
...
...
UI/window-basic-settings.cpp
浏览文件 @
b8966802
...
...
@@ -320,6 +320,7 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
HookWidget
(
ui
->
studioPortraitLayout
,
CHECK_CHANGED
,
GENERAL_CHANGED
);
HookWidget
(
ui
->
multiviewMouseSwitch
,
CHECK_CHANGED
,
GENERAL_CHANGED
);
HookWidget
(
ui
->
multiviewDrawNames
,
CHECK_CHANGED
,
GENERAL_CHANGED
);
HookWidget
(
ui
->
multiviewDrawAreas
,
CHECK_CHANGED
,
GENERAL_CHANGED
);
HookWidget
(
ui
->
multiviewLayout
,
COMBO_CHANGED
,
GENERAL_CHANGED
);
HookWidget
(
ui
->
outputMode
,
COMBO_CHANGED
,
OUTPUTS_CHANGED
);
HookWidget
(
ui
->
streamType
,
COMBO_CHANGED
,
STREAM1_CHANGED
);
...
...
@@ -1110,6 +1111,10 @@ void OBSBasicSettings::LoadGeneralSettings()
"BasicWindow"
,
"MultiviewDrawNames"
);
ui
->
multiviewDrawNames
->
setChecked
(
multiviewDrawNames
);
bool
multiviewDrawAreas
=
config_get_bool
(
GetGlobalConfig
(),
"BasicWindow"
,
"MultiviewDrawAreas"
);
ui
->
multiviewDrawAreas
->
setChecked
(
multiviewDrawAreas
);
ui
->
multiviewLayout
->
addItem
(
QTStr
(
"Basic.Settings.General.MultiviewLayout.Horizontal.Top"
),
static_cast
<
int
>
(
MultiviewLayout
::
HORIZONTAL_TOP_8_SCENES
));
...
...
@@ -2724,6 +2729,11 @@ void OBSBasicSettings::SaveGeneralSettings()
"MultiviewDrawNames"
,
ui
->
multiviewDrawNames
->
isChecked
());
if
(
WidgetChanged
(
ui
->
multiviewDrawAreas
))
config_set_bool
(
GetGlobalConfig
(),
"BasicWindow"
,
"MultiviewDrawAreas"
,
ui
->
multiviewDrawAreas
->
isChecked
());
if
(
WidgetChanged
(
ui
->
multiviewLayout
))
{
config_set_int
(
GetGlobalConfig
(),
"BasicWindow"
,
"MultiviewLayout"
,
...
...
UI/window-projector.cpp
浏览文件 @
b8966802
...
...
@@ -550,12 +550,18 @@ void OBSProjector::OBSRenderMultiview(void *data, uint32_t cx, uint32_t cy)
obs_source_video_render
(
previewSrc
);
else
obs_render_main_texture
();
renderVB
(
window
->
actionSafeMargin
,
targetCX
,
targetCY
,
outerColor
);
renderVB
(
window
->
graphicsSafeMargin
,
targetCX
,
targetCY
,
outerColor
);
renderVB
(
window
->
fourByThreeSafeMargin
,
targetCX
,
targetCY
,
outerColor
);
renderVB
(
window
->
leftLine
,
targetCX
,
targetCY
,
outerColor
);
renderVB
(
window
->
topLine
,
targetCX
,
targetCY
,
outerColor
);
renderVB
(
window
->
rightLine
,
targetCX
,
targetCY
,
outerColor
);
if
(
config_get_bool
(
GetGlobalConfig
(),
"BasicWindow"
,
"MultiviewDrawAreas"
))
{
renderVB
(
window
->
actionSafeMargin
,
targetCX
,
targetCY
,
outerColor
);
renderVB
(
window
->
graphicsSafeMargin
,
targetCX
,
targetCY
,
outerColor
);
renderVB
(
window
->
fourByThreeSafeMargin
,
targetCX
,
targetCY
,
outerColor
);
renderVB
(
window
->
leftLine
,
targetCX
,
targetCY
,
outerColor
);
renderVB
(
window
->
topLine
,
targetCX
,
targetCY
,
outerColor
);
renderVB
(
window
->
rightLine
,
targetCX
,
targetCY
,
outerColor
);
}
endRegion
();
gs_matrix_pop
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录