MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / IsSimple

Method IsSimple

neo/ui/Window.cpp:4061–4091  ·  view source on GitHub ↗

================ idWindow::IsSimple ================ */

Source from the content-addressed store, hash-verified

4059================
4060*/
4061bool idWindow::IsSimple() {
4062
4063 // dont do simple windows when in gui editor
4064 if ( com_editors & EDITOR_GUI ) {
4065 return false;
4066 }
4067
4068 if (ops.Num()) {
4069 return false;
4070 }
4071 if (flags & (WIN_HCENTER | WIN_VCENTER)) {
4072 return false;
4073 }
4074 if (children.Num() || drawWindows.Num()) {
4075 return false;
4076 }
4077 for (int i = 0; i < SCRIPT_COUNT; i++) {
4078 if (scripts[i]) {
4079 return false;
4080 }
4081 }
4082 if (timeLineEvents.Num()) {
4083 return false;
4084 }
4085
4086 if ( namedEvents.Num() ) {
4087 return false;
4088 }
4089
4090 return true;
4091}
4092
4093/*
4094================

Callers 1

ParseMethod · 0.80

Calls 1

NumMethod · 0.45

Tested by

no test coverage detected