================= UI_OwnerDrawWidth ================= */
| 3944 | ================= |
| 3945 | */ |
| 3946 | int UI_OwnerDrawWidth(int ownerDraw, float scale) |
| 3947 | { |
| 3948 | // int i, h, value; |
| 3949 | // const char *text; |
| 3950 | const char *s = NULL; |
| 3951 | |
| 3952 | |
| 3953 | switch (ownerDraw) |
| 3954 | { |
| 3955 | case UI_KEYBINDSTATUS: |
| 3956 | if (Display_KeyBindPending()) |
| 3957 | { |
| 3958 | #ifdef JK2_MODE |
| 3959 | s = ui.SP_GetStringTextString("MENUS_WAITINGFORKEY"); |
| 3960 | #else |
| 3961 | s = SE_GetString("MENUS_WAITINGFORKEY"); |
| 3962 | #endif |
| 3963 | } |
| 3964 | else |
| 3965 | { |
| 3966 | // s = ui.SP_GetStringTextString("MENUS_ENTERTOCHANGE"); |
| 3967 | } |
| 3968 | break; |
| 3969 | |
| 3970 | // FIXME BOB |
| 3971 | // case UI_SERVERREFRESHDATE: |
| 3972 | // s = UI_Cvar_VariableString(va("ui_lastServerRefresh_%i", ui_netSource.integer)); |
| 3973 | // break; |
| 3974 | default: |
| 3975 | break; |
| 3976 | } |
| 3977 | |
| 3978 | if (s) |
| 3979 | { |
| 3980 | return Text_Width(s, scale, 0); |
| 3981 | } |
| 3982 | return 0; |
| 3983 | } |
| 3984 | |
| 3985 | /* |
| 3986 | ================= |
nothing calls this directly
no test coverage detected