hud

Mac OSX Overlay

六眼飞鱼酱① 提交于 2019-12-10 12:19:19
问题 How would I go about programming a HUD type overlay in OSX. I want to be able to have an application that will display text at a certain point over a different application's window. And thus if the (other applications) window moves the HUD part will stay at the same coordinate of the other window. 回答1: For the window itself, use a borderless, transparent window (plenty of examples) with your own custom view into which to draw your overlaid elements. For the "other applications' windows" part,

MBProgressHUD的基本使用

百般思念 提交于 2019-12-09 19:47:30
//方式1.直接在View上show HUD = [[MBProgressHUD showHUDAddedTo:self.view animated:YES] retain]; HUD.delegate = self; //常用的设置 //小矩形的背景色 HUD.color = [UIColor clearColor]; //这儿表示无背景 //显示的文字 HUD.labelText = @ "Test" ; //细节文字 HUD.detailsLabelText = @ "Test detail" ; //是否有庶罩 HUD.dimBackground = YES; [HUD hide:YES afterDelay:2]; //只显示文字 MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES]; hud.mode = MBProgressHUDModeText; hud.labelText = @ "Some message..." ; hud.margin = 10.f; hud.yOffset = 150.f; hud.removeFromSuperViewOnHide = YES; [hud hide:YES afterDelay:3]; //方式2.initWithView /

Showing a HUD whilst an image is downscaled in size

让人想犯罪 __ 提交于 2019-12-08 09:26:34
问题 I have an app where the user takes a photo using the Camera and then chooses to Use the photo. The following method is called: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info Within this method I check the NSData length of the image and resize the actual image if the data (Kb) size is too large, then check again. This way I only scale down small amounts to keep the highest quality/sized image rather than a specific size w/h.

Creating a Interactive GUI for a java game

淺唱寂寞╮ 提交于 2019-12-06 10:08:43
问题 Hey guys I'm creating a game similar to farmville in java and I'm just wondering how would I implement the interactive objects/buttons that the user would usually click to interact with the game client. I do not want to use the swing library (generic windows looky likey objects), I would like to import custom images for my buttons and assign button like properties to those images which would be used for the GUI. Any advice? Any pointers? I can't seem to find that information through youtube

Overlay text on some else's window - HUD

折月煮酒 提交于 2019-12-05 19:31:04
I am interested in writing an application that overlays a small heads up display ( HUD ) over another application, in VB.NET. What is an example of this? I will need to enumerate all open windows to find the window that I want, and then overlay some text in a specific position on the window. If the user moves that window, my text will need to follow. (I will probably be painting the text in a loop over and over). Edit: nobody answered my original query - I added C# to the keywords to see if any of gurus in that language might have an answer. Stanislav You can use WinApi to enumerate windows.

Creating a Interactive GUI for a java game

[亡魂溺海] 提交于 2019-12-04 15:44:47
Hey guys I'm creating a game similar to farmville in java and I'm just wondering how would I implement the interactive objects/buttons that the user would usually click to interact with the game client. I do not want to use the swing library (generic windows looky likey objects), I would like to import custom images for my buttons and assign button like properties to those images which would be used for the GUI. Any advice? Any pointers? I can't seem to find that information through youtube or some other java gaming sites as they're only showing simple example using swing. Any help would be

Overlay a view over whole screen, when using UITabBarController?

﹥>﹥吖頭↗ 提交于 2019-12-03 17:05:09
问题 I want to overlay a HUD-style transparent graphic over the entire screen in a UITabBarController setup. The button to do this is in the first tab's screen (FirstViewController), and the overlay should also cover the tabs... is this possible? 回答1: You could attach your new view to your window directly. [[[UIApplication sharedApplication] keyWindow] addSubview:myNewView]; 回答2: The above solution by Henrik P. Hessel is Good but there is one problem with that solution. The problem is already

How do I create a HUD on top of my Scenekit.scene

心不动则不痛 提交于 2019-12-03 12:11:54
I'm experimenting with Swift and Scenekit. Building a Mac OS X app. It seems quite easy to get a 3d-scene working. But what is scene without some kind of 2D hi-score, radar display, speed indicator, etc? I would expect a SpriteKit-scene to seamlessly integrate into a SceneView but I don't find the documentation very clear about this.. The most obvious and only way I can think of is to position a SKView over a SceneView and render each separately. But is there a more elegant way? try scnView.overlaySKScene = aSKScene; (see SCNSceneRenderer.h) This is the recommended way. An alternative way is

Overlay a view over whole screen, when using UITabBarController?

帅比萌擦擦* 提交于 2019-12-03 06:02:21
I want to overlay a HUD-style transparent graphic over the entire screen in a UITabBarController setup. The button to do this is in the first tab's screen (FirstViewController), and the overlay should also cover the tabs... is this possible? You could attach your new view to your window directly. [[[UIApplication sharedApplication] keyWindow] addSubview:myNewView]; The above solution by Henrik P. Hessel is Good but there is one problem with that solution. The problem is already mentioned by elsurudo in the comment below the Answer. The problem I have with this solution is that the overlay

Drawing UI elements directly to the WebGL area with Three.js

天大地大妈咪最大 提交于 2019-11-30 12:12:00
问题 In Three.js, is it possible to draw directly to the WebGL area (for a heads-up display or UI elements, for example) the way you could with a regular HTML5 canvas element? If so, how can you get the context and what drawing commands are available? If not, is there another way to accomplish this, through other Three.js or WebGL-specific drawing commands that would cooperate with Three.js? My backup plan is to use HTML divs as overlays, but I think there should be a better solution. Thanks! 回答1: